Inspired by a social network to meet new people with the same interests, focused on our region/university and local events.
Inatinder API RESTful backend.
- Docker and Docker Compose
- Node 16.18.0
$ npm install
NODE_ENV=development
DB_NAME=inatinder_dev
DB_HOST=localhost
DB_USER=inatinder
DB_PASSWORD=senhaforte
SECRET_JWT=ihul-my-super-secret-jwt
# start mysql container
$ docker-compose up -d
Run, in order, each *.sql
files in migrations folder, that will contain database schema in version history.
The database name must be equals to .env
file, system will use it to connect.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
It's done. Server is up on port 3000
.
To consult the data API, use Insomnia and import the API.json
file that is inside the docs
folder
All process to install and run needs to get .env
preset configured.