SkillSpace is a course platform built to create customizable courses and manage a community around it. This repository contains only the API part of SkillSpace. It is necessary to execute SkillSpace Front simultaneously to run SkillSpace's complete application.
- Install npm
- Install NodeJs
- Install MySQL
- run
npm install
to install dependencies - Set the enviroment variables creating a .env file with the following keys:
DB_USER = "root"
DB_PASSWORD = "your_password"
TKN_SECRET = "SecretToken"
STORAGE_TYPE=local
BUCKET_NAME=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
- Create the database using the following commands
npx run db-create
to create the databasenpx run db-migrate
to execute the migrationsnpx run db-seed
to create pre-defined elements on the database
- run
npm start
to start the project on port 3333
- SkillSpace API is currently deployed at https://skill-space-api.herokuapp.com/
npx run db-drop
to delete the databasenpx run db-reset
to execute the drop, create, migrate and seed commands