Skip to content

prithidevghosh/FlySimple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlySimple - A flight tariff tracking website

This is an Express.js application that allows users to create accounts, login, book flights, and sign out. The application uses JWT for user authentication and password hashing for enhanced security.

Features

  • User registration and login with JWT authentication --> JWT
  • Password hashing for secure storage of user credentials using bcrypt --> bcrypt
  • Search and view available flights between source and destination
Deployed Link
https://fly-simple-prod.vercel.app/

Note: PUT AIRPORT CODES (e.g. DEL for New Delhi) TO SEARCH THE FLIGHTS in the production link

Prerequisites

  • Node.js v14.15.0 or higher
  • NPM v6.14.8 or higher
  • MongoDB v4.4 or higher

Frontend Installation

Clone the repo

git clone https://github.com/prithidevghosh/FlySimple.git

Install the required packages

cd Frontend
npm install

Start the frontend locally

npm start

Backend Installation

Clone the repo

git clone https://github.com/prithidevghosh/FlySimple.git

Install the required packages

cd Backend
npm install

Start the server locally

node index.js

Configuration

The application requires a MongoDB instance to be set up. You can configure the database connection by setting the following environment variables:

DATABASE_URI = "URI of your mongoDB instance"
JWT_SECRET_KEY ="your own JWT secret key",
SESSION_SECRET_KEY ="your own key to encrypt the session information"

You can set these environment variables in a .env file in the root directory of the application.

API Endpoints

Base URL
https://fly-simple.vercel.app
Endpoint Name Method Purpose
/api/user/create POST Create a new user
/api/user/create-session POST Create a session for user / Logging In User
/api/user/delete-session POST Deleting session for user / Signing Out User
/api/flights/tariff/{source}/{destination}/{date} GET Find flights between two airports

Test the APIs using any tool like Postman

Screenshots

Image

Fig: Home Screen

Image

Fig: Login Screen

Image

Fig: Signup Screen

Image

Fig: FlightSearch Screen

Image

Fig: search result Screen

About

A flight tariff tracking website

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors