- ⚡ E2E type safety with tRPC
- ⚡ Full-stack React with Next.js
- ⚡ WebSockets / Subscription support
- ⚡ Database with Prisma
- ⚡ Cache Memory with Redis
- 🎨 ESLint + Prettier
npm run dev # runs dev with nodemon
npm run build # build nextjs and custom server
npm run start # starts next.js + WebSocket server
npm run lint # start linting
npm run prisma:format # format schema.prisma file
npm run prisma:generate # generate schema.prisma
npm run prisma:migrate # migrate prisma database
npm run prisma:deploy # deploy database
npm run prisma:pull # pull database to schema.prisma
- Docker
- Docker Compose
-
Clone this repository:
git clone https://github.com/ChilG/next-trpc-ws
-
Navigate to the project directory:
cd next-trpc-ws
-
Build and run the containers using Docker Compose:
docker-compose up -d
-
Once the containers are up and running, you can access the web application at
http://localhost:3000 # app-router http://localhost:3001 # page-router