https://github.com/anisharaz/resourcesite
The app to have all your reading material at single place
https://github.com/anisharaz/resourcesite
deployment
Last synced: over 1 year ago
JSON representation
The app to have all your reading material at single place
- Host: GitHub
- URL: https://github.com/anisharaz/resourcesite
- Owner: anisharaz
- Created: 2024-05-03T12:54:35.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-26T09:40:18.000Z (over 1 year ago)
- Last Synced: 2025-03-18T16:13:55.081Z (over 1 year ago)
- Topics: deployment
- Language: TypeScript
- Homepage: https://notes.aaraz.me
- Size: 947 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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](https://mega.nz/file/vs9CRYJa#GkJBz0S3eYRolVQxLynxVnMroqVpMA0aLhuXkZ-gh5U) - 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
```
2. Run the PostgreSQL db container (this step can be skipped if local database is setup)
```
> docker compose up -d
```
3. Install the necessary dependencies
```
> npm i
```
4. Setup environment variables
```
> cp .env-example .env
```
5. Update the database with the changes defined in `schema.prisma`
```
> npx prisma migrate
```
5. Seed database with initial data
```
> npx prisma db seed
```
7. Start the development server
```
> npm run init
> npm run dev
```