Uses Typescript and Node for backend operations needed for the Charge Cloud UI
Install the required packages with npm.
npm install
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
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
npm run start