/learnify-backend

Learnify backend

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Learnify Backend

Development

Here are the steps to run the project locally.

  1. Clone the repository

    git clone https://github.com/ccrsxx/learnify-backend.git
  2. Change directory to the project

    cd learnify-backend
  3. Install dependencies

    npm i
  4. 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.

  5. Create DB if not exists

    npm run db:create
  6. Run migrations

    npm run db:migrate
  7. Run seeders

    npm run db:seed
  8. Run the app

    npm run dev