NodeJs | NextJS | TypeScript | PostgreSQL | Sequelize | Docker |
---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
On production we will be setting up the whole infrastructure with Docker containers, using the command:
npx next build && docker-compose up --build
For local development we will setup the DB on Docker but run locally the Next application in order to take advantage of tools like hot reload to see changes on the code be reflected on real-time. Before pushing to the repo all changes should be testes dockerizing the whole application.
docker-compose up postgres -d
cd my-app && npm run dev
DB_HOST=localhost
DB_PORT=5432
DB_USER=[username]
DB_PASS=[password]
DB_NAME=[name for db]
JWT_SECRET=ba1b46dcbd266376.......
ENVIROMENT=dev