Backend for the Wednesdays Wicked Adventure project, a MERN stack application. This backend is responsible for handling ticket bookings for the adventure park.
- Express: A fast, unopinionated, minimalist web framework for Node.js.
- Node.js: A JavaScript runtime built on Chrome's V8 JavaScript engine.
- Mongoose: An elegant MongoDB object modeling tool designed to work in an asynchronous environment.
-
Clone the Repository:
git clone https://github.com/Narwal25/WWA-backend.git
-
Navigate to the Project:
cd WWA-backend -
Install Dependencies:
npm install
-
Create Config File:
- Create a file named
config.envin the root directory.
- Create a file named
-
Configure
config.env:- Add the following details to the
config.envfile:DATABASE=<your-database-url> PORT=<your-port-number> JWT_SECRET=<your-jwt-secret>
- Add the following details to the
-
Run the Server:
node index.js
-
Access Swagger Documentation:
- Swagger auto documentation is available at http://localhost:5000/api-docs.
-
Run Unit Tests:
npm test
Contributions are welcome! If you have ideas for enhancements or find issues, please open a pull request or report an issue.
This project is licensed under the MIT License.
Explore the thrilling world of Wicked Adventures! 🎢🌟