mavidurak / mentor-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Example .env

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

License

GNU General Public License v3.0

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 67.3%Language:HTML 31.0%Language:Dockerfile 1.0%Language:Shell 0.8%