niawjunior / geo-backend

NodeJS + ORM + Postgres + JWT + Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker

  1. Build and Run Database
docker-compose up -d
  1. Stop Container
docker-compose down
  1. Check Volume
docker volume ls

Application

  1. Run the following command to initialize the Sequelize project structure:
sequelize init
  1. Once the project structure is initialized, open the config/config.json file and update it with your database configuration details, such as the database name, username, password, and host.

  2. Create migration file

sequelize migration:generate --name create-refresh-tokens
  1. After updating the config/config.json file, run the migration command again:
sequelize db:migrate
  1. Run Backend Application
npm run dev

About

NodeJS + ORM + Postgres + JWT + Docker


Languages

Language:JavaScript 100.0%