Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1.13 KB

README.md

File metadata and controls

63 lines (39 loc) · 1.13 KB

Project Setup

Prerequisite

  • Docker & Docker Compose Installed (not required if you use your own postgres db,but don't forget to change the .env file accordingly)

  • npm & NodeJs

  • Download the Modules zip from here - Modules.zip - for development purpose these pdf are enough

  • Extract Modules.zip content to public folder after cloning the project

Module.zip Structure

/SubjectCode/SubjectCode_ModuleNo.pdf eg. 22CSE249/22CSE249_2.pdf


Run the commands one by one:

  1. Clone the repository
> git clone https://github.com/anisharaz/resourcesite.git && cd resourcesite

  1. Run the PostgreSQL db container (this step can be skipped if local database is setup)
> docker compose up -d
  1. Install the necessary dependencies
> npm i
  1. Setup environment variables
> cp .env-example .env
  1. Update the database with the changes defined in schema.prisma
> npx prisma migrate
  1. Seed database with initial data
> npx prisma db seed
  1. Start the development server
> npm run init

> npm run dev