Skip to content

Commit

Permalink
fixed the all lint error once using npx prettier --write .
Browse files Browse the repository at this point in the history
  • Loading branch information
TanmayDhobale committed Mar 18, 2024
1 parent fdc736e commit 57cd4b8
Show file tree
Hide file tree
Showing 13 changed files with 2,842 additions and 1,032 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
}
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@

## Setup Procedure

* Docker
- Docker

OR
OR

- Copy .env.example to .env
- Get a postgres db from https://neon.tech/ (or any other provider)
- Replace the DATABASE_URL in .env
- Run `npx prisma migrate dev` to setup schema

* Copy .env.example to .env
* Get a postgres db from https://neon.tech/ (or any other provider)
* Replace the DATABASE_URL in .env
* Run ```npx prisma migrate dev``` to setup schema
## Steps to run locally

With Docker

* ```docker compose up```
- `docker compose up`

Without Docker
* ```npm install```
* ```npm run db:seed``` to seed the database
* ```npm run dev```
* Login using any userid and password 123456
* You should be able to see some test courses

- `npm install`
- `npm run db:seed` to seed the database
- `npm run dev`
- Login using any userid and password 123456
- You should be able to see some test courses

---

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
volumes:
- ./postgres-data:/var/lib/postgresql/data
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}' ]
test: ['CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}']
interval: 10s
timeout: 5s
retries: 5
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,15 @@
"typescript": "^5"
},
"lint-staged": {
"*.js": [
"npm run lint:fix",
"npm run format:fix",
"git add"
],
"*.ts": [
"npm run lint:fix",
"npm run format:fix",
"git add"
]
}

"*.js": [
"npm run lint:fix",
"npm run format:fix",
"git add"
],
"*.ts": [
"npm run lint:fix",
"npm run format:fix",
"git add"
]
}
}
Loading

0 comments on commit 57cd4b8

Please sign in to comment.