AnggaraMAG / BE_TICKETKU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TicketKu

Online ticket booking application. Book tickets anytime, anywhere.

Getting Started

Before starting to install the project, there're some things that need to be done first.

Prerequisites

Make sure all of these are properly installed in your system.

Application Download
Git Windows / Linux / Mac
Node.js Link
MySQL Link

Installation|

First, clone this repository into your system. and clone API 
Frontend : https://github.com/AnggaraMAG/FE_TICKETKU,
Backend API : https://github.com/AnggaraMAG/BE_TICKETKU

Then, install all the packages that described in package.json of both client and server directories.

npm install

Server Setup

For the server setup, first, make sure your MySQL services is running fine. In server directory, you'll find config.json inside config folder. Open and edit the development configuration to match your database setup.

"development": {
    "username": "root",
    "password": null,
    "database": "database_development",
    "host": "127.0.0.1",
    "dialect": "mysql",
    "operatorsAliases": false
  },
npm run build

We also need to configure some environtment variables for the server, let's create .env file in server's root project, open and edit it, then input the code below.

PORT=5000
SECRET_KEY=ThisIsTheSecretKey

The SECRET_KEY and PORT you can custom it as you wish.

And for the last step, running the server

npm start

Built With

Author

M Anggara Gultom - AnggaraMAG

License

This project is licensed under the GNU General Public v3.0 License - see the LICENSE file for details

About


Languages

Language:JavaScript 100.0%