Hey! Here's how to get the project running on your machine. It's pretty straightforward.
Make sure you have these installed:
- Node.js (for running the code)
- PostgreSQL (the database)
- Redis (for the locking stuff)
Open a terminal in the project folder and run:
npm installThen go to the client folder and do the same:
cd client
npm install
cd ..You need to create a database called bookd.
# If you have psql installed
createdb bookdThen, seed the database with some fake data so it's not empty:
npm run seedThis creates some test users like customer@example.com (password: password123).
You need two terminals open.
Terminal 1 (Backend):
npm startThis runs the server on port 3000.
Terminal 2 (Frontend):
cd client
npm run devThis opens the website on port 5173.
That's it! Go to http://localhost:5173 and log in.