- Keep docker running in the background
sudo docker-compose up --build -d
OR - Keep docker running in the foreground to check the logs
sudo docker-compose up --build
sudo docker exec -it ys121_be_task_db_1 psql -U postgres -d ys121_be_task
- Install PostgreSQL
- Create a database named
ys121_be_task
- Run the SQL script
db.sql
to create the tables and insert the datapsql -U postgres -d ys121_be_task -a -f db.sql
- Update the database url in the
.env
file
-
Install the required dependencies
npm install
-
Start the server
npm start
ornode server.js