Ankasa Ticketing : Backend Flight Booking
Create a Node.js app for building flight booking RESTful APIs using Express.
Explore the docs ยป
View Web Service
ยท
Report Bug
ยท
Request Feature
Table of Contents
Table of Contents
About The Project
Create a Node.js app for building flight booking RESTful APIs using Express.
Built With
This app was built with some technologies below:
- Node.js
- Express.js
- JSON Web Tokens
- Nodemailer
- PostgreSQL
- and other
Getting Started
Prerequisites
This is an example of how to list things you need to use the software and how to install them.
Requirements
Installation
- Clone the Repo
git clone https://github.com/A-RED-Team/ankasa-ticketing-backend.git
- Go To Folder Repo
cd ankasa-ticketing-backend
- Install Module
npm install
- Make a new database and import ankasa_ticketing.sql
- Setup .env
- Type
npm run dev
To Start Development - Type
npm run start
To Start Production
Setup .env example
Create .env file in your root project folder.
# app
APP_NAME=
NODE_ENV=
PORT=
API_URL=
APP_CLIENT=
# database
DB_HOST=
DB_USER=
DB_PASSWORD=
DB_NAME=
DB_PORT=
# jwt
JWT_SECRET=
JWT_EXPIRED=
# google
EMAIL_FROM=
EMAIL_USER=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
REDIRECT_URI=
GMAIL_REFRESH_TOKEN=
DRIVE_REFRESH_TOKEN=
REST API
You can view my Postman collection here
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Related Project
๐ Frontend Ankasa Ticketing
๐ Frontend Ankasa Ticketing Admin
๐ Web Service
๐ Demo Ankasa Ticketing Admin
Our Team
License
Distributed under the MIT License.