kigt-inc / charge-cloud-backend-2023

0 stars 0 forks source link

KIGT Backend Reference

Uses Typescript and Node for backend operations needed for the Charge Cloud UI

Features

Install packages needed with npm

Install the required packages with npm.

  npm install

Run Locally

Clone the project

  git clone https://github.com/kigt-inc/charge-cloud-backend-2023.git

Go to the project directory

  cd charge-cloud-backend-2023

Install dependencies

  npm install

Add env file for reference check .env.example file

Environment Variables

To run this project, you will need to add the following environment variables to an .env file

create charge-cloud-backend-2023/.env environement file in your local system:

These are used to establish a connection between the project and the specified MySQL database.

Create the database at mysql

To run migrations

npx sequelize-cli db:migrate

To run seeders

npx sequelize-cli db:seed:all

Start the server

npm run dev

Run Server on the Production with all migrations

npm run start

API Reference