Simple todo app - FullStack - PERN
Install docker and docker-compose for example:
sudo apt update
sudo apt install docker.io docker-compose
Start everything in the docker-compose.yml
:
docker-compose up
or just the database
docker-compose up postgres
Check what is running or stopped with
docker ps -a
When finished can
docker-compose down
docker cp database.sql mytodo_postgres_1:/tmp
docker-compose exec postgres psql -U postgres -f /tmp/database.sql
Navigate to the project directory and run this command
npm install
Then, navigate the client folder and run the same command to run all the client's dependencies.
Navigate to the project directory and run this command
npm start
Navigate to the Client folder and run this command
npm start