Skip to content

MentalApp/mental-backend

Repository files navigation

Mental App

Backend for Mental App from UET

Getting Started

Follow these instructions to set up this project on local machine.

Prerequisites

  • Install node and it will also install npm.

  • After that, install yarn.

    npm install -g yarn
    

    then check it

    node -v
    
    // v14.3.0
    
    yarn -v
    
    // 1.22.4
    

Installing

  • Clone project

    git clone https://github.com/NamNguyen99/mental-backend.git && cd mental-backend
    
  • Install dependencies

    yarn
    
  • Make env file

    cp .env.example .env
    
  • Create database

    sequelize-cli db:create db:migrate db:seed:all
    
  • Run Rabbit MQ

    docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management
    
  • Run project

    yarn start
    

Deploy

  • Install
    node v14.3.0
    yarn 1.22.4
    npx 6.14.11
    
  • Setting environment
    cp .env.example .env
    change DATABASE_URL with database url on production in .env file
    
  • Migrate DB
    npx sequelize-cli db:migrate
    npx sequelize-cli db:seed:all
    
    <!-- test pool v2
    npx sequelize-cli db:seed --seed v2_test_pool.seed.js -->
    
  • Run
    yarn
    yarn runproduction
    

About

Backend of Mental App from UET

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •