A react app with node js backend and postgres DB. There are 2 ways to run the app:
- Clone the repo and CD into it
- Type
docker-compose up - Should start 3 services: posgres DB with sample books, node js backend app and front-end react app.
- The catalog should be available at
http://localhost:3000
- Clone the repo and CD into it.
- Start local Postgres server.
- Run manually the SQL in
database-seed.sql - Change the credentials in
backend/initDB.jsto match your DB. - In
backendfolder, run:npm installandnode index.jsto start the server. - In
frontendfolder, run:npm installandnpm run startto start the server.