Coder Social home page Coder Social logo

tiendk195 / travel_booking Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21.48 MB

Fullstack web with font-end React back-end express-nodejs and mongodb

Home Page: https://traverling-booking.vercel.app

License: MIT License

JavaScript 81.11% HTML 1.80% CSS 17.09%

travel_booking's Introduction

MERN Travel-Booking Project

This is a MERN (MongoDB, Express.js, React.js, Node.js) project for learning purposes focused on developing a Travel-Booking application.

Table of Contents

Introduction

This project is designed to provide hands-on experience in building a Travel-Booking application using the MERN stack. The backend is developed using Node.js with Express.js to create API endpoints for fetching tour information and implementing features like data validation using Joi and JWT token authentication. The frontend is developed using React.js for building the user interface.

Features

  • Backend API endpoints for retrieving tour information
  • Data validation using Joi
  • JWT token authentication
  • User-friendly frontend interface for booking tours
  • Integration of Reactstrap for UI components
  • Implementation of React Router for navigation

Technologies

  • MongoDB Atlas: Database
  • Express.js: Backend framework for Node.js
  • React.js: Frontend library for building user interfaces
  • Node.js: JavaScript runtime environment
  • JWT: JSON Web Tokens for authentication
  • Joi: Library for data validation
  • Reactstrap: Bootstrap components for React
  • React Router DOM: Library for routing in React applications
  • Vercel: Deployment platform for frontend

Installation

Backend Installation

  1. Clone the repository:
git clone https://github.com/tiendk195/Travel_Booking
  1. Navigate to the backend folder:
cd backend
  1. Install dependencies:
npm install

Frontend Installation

  1. Navigate to the frontend folder:
cd frontend
  1. Install dependencies:
npm install

Usage

Running Backend

  1. Navigate to the backend folder:
cd backend
  1. Run the development server:
npm run dev

Running Frontend

  1. Navigate to the frontend folder:
cd frontend
  1. Start the development server:
npm start

Environment Variables

Make sure to create a .env file in both the backend and frontend folders with the following variables:

  • PORT: Port number for the server
  • MONGO_URL: MongoDB Atlas connection URL
  • JWT_SECRET_KEY: Secret key for JWT token encryption

Strengths

Upon completing this project, you will gain knowledge in the following areas:

  • Building a full-stack web application using the MERN stack
  • Creating API endpoints with Node.js and Express.js
  • Data validation techniques using Joi
  • User authentication using JWT tokens
  • React.js for building dynamic user interfaces
  • Integration of Reactstrap for UI components
  • Implementation of React Router for navigation

Deployments

Backend Deployment

The backend can be deployed to a platform like Heroku or AWS Elastic Beanstalk.

Frontend Deployment

The frontend can be deployed to Vercel, which provides seamless deployment for React applications.

Reference Application

After completing this project, you can refer to the deployed Travel-Booking application Travel-Booking. This reference application will provide additional insights and serve as inspiration for further enhancements to your project.

travel_booking's People

Contributors

tiendk195 avatar

Stargazers

 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.