Buy like a wizard, save like a muggle!
- prisma # Prisma schema and migrations
- src
- controllers # HTTP handlers
- database # Database connection
- errors # Errors utils
- middlewares # Middlewares
- services # Services
- tests # Tests files
- utils # Utils
- router.js # Router
- server.js # Server app
- .env # Environment variables
To install the dependencies, you can use the following commands:
npm i --production
# or
yarn --prod
You should rename the file .env.example
to .env
and fill in the environment variables.
To start the server, you can use the following command:
npm run start
# or
yarn start
If you want to run the server in development mode, take a look at the development docs.
Routes:
POST /user
POST /login
GET /user
PUT /user
DELETE /user
GET /products
GET /product
POST /cart
GET /cart
DELETE /cart
For more details, take a look at the routes docs.
This project brought together two passions of mine: programming and the Harry Potter universe. After I saw the films and read the Harry Potter books, I really wanted to develop a project about them. So, I had the idea of creating WizBuy, a platform for wizards and witches from all over the world to buy their items online.