https://github.com/akashpawar43/starter-code
starter code for project with authentication and file and folder structure setup already
https://github.com/akashpawar43/starter-code
access-token authentication-service bcryptjs cookies custom-authentication expressjs jwt-authentication jwt-tokens node-starter-kit nodejs postgre prisma refresh-token starter-code typescript zod-validation
Last synced: 4 months ago
JSON representation
starter code for project with authentication and file and folder structure setup already
- Host: GitHub
- URL: https://github.com/akashpawar43/starter-code
- Owner: akashpawar43
- Created: 2025-02-20T19:10:08.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-20T19:19:37.000Z (4 months ago)
- Last Synced: 2025-02-20T20:26:39.124Z (4 months ago)
- Topics: access-token, authentication-service, bcryptjs, cookies, custom-authentication, expressjs, jwt-authentication, jwt-tokens, node-starter-kit, nodejs, postgre, prisma, refresh-token, starter-code, typescript, zod-validation
- Language: TypeScript
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Starter code for project
### start postgres locally
```
docker run -e POSTGRES_PASSWORD=mypassword -d -p 5432:5432 postgres
```### db url
```
postgresql://postgres:mypassword@localhost:5432/mydb?schema=public
```### create .env file in root folder and add above url
```
DATABASE_URL = "your_db_url"
PORT = 4000
JWT_SECRET = "your_jwt_secret"
JWT_REFRESH_SECRET = "your_jwt_refresh_secret"
```### setup prisma
```
npx prisma init
npx prisma generate dev --name init
npx prisma migrate
```### start dev server
```
npm run dev
```### build server
```
npm run build
```### run build
```
npm run start
```