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
/SubjectCode/SubjectCode_ModuleNo.pdf eg. 22CSE249/22CSE249_2.pdf
- Clone the repository
> git clone https://github.com/anisharaz/resourcesite.git && cd resourcesite
- Run the PostgreSQL db container (this step can be skipped if local database is setup)
> docker compose up -d
- Install the necessary dependencies
> npm i
- Setup environment variables
> cp .env-example .env
- Update the database with the changes defined in
schema.prisma
> npx prisma migrate
- Seed database with initial data
> npx prisma db seed
- Start the development server
> npm run init
> npm run dev