Here are the steps to run the project locally.
-
Clone the repository
git clone https://github.com/ccrsxx/learnify-backend.git
-
Change directory to the project
cd learnify-backend
-
Install dependencies
npm i
-
Check your credentials on
.env.development
. Make sure you have the correct credentials for your PostgreSQL database. Or create.env.local
so that it doesn't get tracked by git. -
Create DB if not exists
npm run db:create
-
Run migrations
npm run db:migrate
-
Run seeders
npm run db:seed
-
Run the app
npm run dev