Mentor API
Install
git clone https://github.com/mavidurak/mentor-api.git
cd mentor-api
Setup
npm install
Start
npm start
Migration
npm run migrate
Testdb Migration
NODE_ENV=test npm run migrate
ESlint Fix
npm run lint -- --fix
.env
Example APP_PORT=4000
DATABASE=mavidurak
TEST_DATABASE=mavidurak_test
DATABASE_USERNAME=root
DATABASE_PASSWORD=
DATABASE_HOST=localhost
API_PATH=http://localhost:4000
DASHBOARD_UI_PATH=http://localhost:8080
EMAIL_HOST=
EMAIL_PORT=
EMAIL_SECURE=
EMAIL_USER=
EMAIL_PASSWORD=
Send mail with smtp.gmail.If you use smtp.google, EMAIL_SECURE=
is mast be true
Docker Build
docker build -t mentorapi:1.0 .
Docker Run
docker run --env-file=.env --network host mentorapi:1.0