https://github.com/skyline146/writle
Api, web application, created using monorepo, Next.js, Hono, DrizzleORM.
https://github.com/skyline146/writle
drizzle-orm hono monorepo nextjs postgresql react turbo
Last synced: 5 months ago
JSON representation
Api, web application, created using monorepo, Next.js, Hono, DrizzleORM.
- Host: GitHub
- URL: https://github.com/skyline146/writle
- Owner: skyline146
- Created: 2024-07-25T16:28:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-07T11:41:18.000Z (over 1 year ago)
- Last Synced: 2025-09-12T09:01:41.433Z (10 months ago)
- Topics: drizzle-orm, hono, monorepo, nextjs, postgresql, react, turbo
- Language: TypeScript
- Homepage:
- Size: 938 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Fullstack monorepo application: social network for publishing posts, adding friends. Scrolling feed, based on your choosen interests or friends posts.
## Used technologies:
- ### Frontend:
- [Next.js](https://nextjs.org/)
- [React](https://react.dev/)
- [TailwindCSS](https://tailwindcss.com/)
- ### Backend:
- [Hono](https://hono.dev/)
- [DrizzleORM](https://orm.drizzle.team/)
- [PostgreSQL](https://www.postgresql.org/)
- ### Tools:
- [Turborepo](https://turbo.build/repo)
- [Docker](https://www.docker.com/)
- [Bun](https://bun.sh/)
## Getting Started (pnpm required)
### Install dependencies (root folder):
```bash
pnpm install
or
bun install
```
### Run in development mode:
```bash
pnpm run dev
or
bun run dev
```
This comand in the background will fire:
```bash
turbo run dev
```
In `turbo.json`:
```json
"tasks": {
"dev": {
"cache": false
}
}
```
Starting applications in development mode separately:
- Web: `pnpm run dev:web`
- Api: `pnpm run dev:api`.
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
API: [http://localhost:4000](http://localhost:4000)
### Run in production mode:
```bash
pnpm run prod
```
This comand in the background will fire:
```bash
turbo run nextjs-frontend#start nestjs-backend#start:prod
```
In `turbo.json`:
```json
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**", "dist/*"]
},
"nextjs-frontend#start": {
"dependsOn": ["build"]
},
"nestjs-backend#start:prod": {
"dependsOn": ["build"]
}
}
```
`outputs` in `build` task conigured to cache results of building an application.