Welcome to PrimeTravel Server! 🌍
- Faker (^6.6.6): A library for generating fake data.
- Lodash (^4.17.21): A utility library providing helpful functions for working with arrays, objects, and more.
- @faker-js/faker (^8.3.1): Another version of Faker, offering additional features.
- Nodemon (^3.0.2): A utility that monitors for changes and automatically restarts your server.
server-json
: Start the server using JSON Server to mock APIs. It watches for changes in theroutes
,mocks
, anddata.js
files.
The project includes the following routes:
- Bookings: Manage bookings and reservations.
- Customers: Handle customer information and interactions.
- Packages: Create, update, and view travel packages.
- Destinations: Explore and manage various travel destinations.
- Travel Agents: Track details of travel agents, including assigned customers.
- Reviews: Collect and display reviews for destinations and packages.
- Add a new file in the
routes
directory. - Import the new route file in
data.js
. - Update the necessary logic in the route file.
- Typically, data manipulation and updates are centered in the
mocks
directory.
routes
: Contains route files to handle different API endpoints.mocks
: Houses mock data for various entities like destinations, packages, activities, etc.data.js
: Aggregates data from different routes and mocks to serve as the main data source.server.js
: The entry point for the server setup.package.json
: Configuration file specifying dependencies, scripts, and project details.
Feel free to explore, customize, and enhance the project to suit your needs. Happy coding! 🚀