Skip to content

Latest commit

 

History

History
60 lines (31 loc) · 1.21 KB

README.md

File metadata and controls

60 lines (31 loc) · 1.21 KB

bootcamp-app

requirements

backend setup

Change to /backend directory

cd backend

Install node package requirements

npm install

Start Docker (postgresql database)

docker-compose up

In a seperate shell, run server

npm run dev

--

To stop containers without removing them: docker-compose stop

To stop containers and remove them (along with their volumes—this will drop all tables from the database!): docker-compose down -v

when the database schema is changed, you need to remove the database and re-create it, this is done by doing

docker-compose down -v and then docker-compose up

frontend setup

In a seperate shell, change to /frontend directory

cd frontend

Install node package requirements

npm install

Start

npm run dev

trouble shooting

sudo lsof -i :5432 - to check what’s running on the port 5432

launchctl list - to show all processes

find the process from that list and then

launchctl remove <name_from_list_command> - to remove it