Using docker-compose we can define and run multi-container Docker applications.
Using sequelize we can work with PostgreSQL database.
Using EspressJS framework we can create routes abstractions, middlewares and many other functions to facilitate the creation of both API's and SPA's.
-
Open two terminals
- Enter the repository folder 'back-end':
cd back-end
- Enter the repository folder 'back-end':
-
Install the dependecies
- Using:
npm install
- Using:
-
Start the application
- Using:
npm run build && npm run pm2:start
you will initialize the application - Using:
npm run start:dev
you will initialize the application with nodemon. - Using:
docker compose up
you will initialize the application with postgres with docker.
- Using:
-
In the other terminal
- Enter the repository folder 'front-end':
cd front-end
- Enter the repository folder 'front-end':
-
Install the dependecies
- Using:
npm install
- Using:
-
Start the application
- Using:
npm start
you will initialize the application.
- Using: