Giter VIP home page Giter VIP logo

primetravel-server's Introduction

✈️ PrimeTravel Server

Overview

Welcome to PrimeTravel Server! 🌍✈️ This project serves as the backend for a travel agency CRUD application. It leverages the power of Faker and Lodash to generate realistic data for travel destinations, packages, activities, and more.

Dependencies

  • 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.

Scripts

  • server-json: Start the server using JSON Server to mock APIs. It watches for changes in the routes, mocks, and data.js files.

Routes

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.

How to Add a Route

  1. Add a new file in the routes directory.
  2. Import the new route file in data.js.
  3. Update the necessary logic in the route file.

How to Update a Route

  • Typically, data manipulation and updates are centered in the mocks directory.

Project Structure

  • 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! 🚀

primetravel-server's People

Contributors

andre-rd-rodrigues avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.