The motivation for this project came from the Website making challenge by Programming club. It is highly inspired by the Harry Potter game, Hogwarts legacy.
You will have to run the backend first and then add the link to it in the frontend env.
- Navigate to the backend directory:
cd ./backend
. - Install all the dependencies:
npm i
. - Create an
.env
file and add the respective data:MONGO_URL= ACCESS_TOKEN_SECRET= ADMIN_ACCESS_TOKEN_SECRET=
- Run the backend using the command:
npx nodemon server.js
.
- Navigate to the frontend directory:
cd frontend
. - Install all the dependencies:
npm i --legacy-peer-deps
. - Create the
.env
file in the frontend and add the backend's running URL into it:REACT_APP_DOMAIN=http://localhost:3000/
- Run the frontend using the command:
npm start
.
The website is live on Vercel. You can visit it at https://broomstick-getaways.vercel.app/.