nestjs-nextjs-starter Tailwind Templates

Nestjs Nextjs Starter

Nest.js, Next.js, Postgresql, Tailwind, Daisyui

Nest.js and Next.js Starter

Starter for back-end and front-end

Back-end

  • Nestjs
  • Prisma
  • Postgresql
  • Swagger
  • Restful api
  • Local and S3 storage
  • Google and facebook auth
  • Jwt, AccessToken and RefreshToken
  • Custom decorator
  • Class validator
  • Json seeder

Back-end Instruction

Step 1 : Run this command for install dependencies (I using yarn)
 > cd backend
 > yarn install
 # or
 > npm install
Step 2 : Create .env file, just copy .env.example
 > cp .env.example .env
Step 3 : Configure .env file
 # for connect to postgresql database
 DATABASE_URL="postgresql://postgres:12345@localhost:5432/ats?schema=public"

 # google authenticate
 GOOGLE_CLIENT_ID=your_google_client_id
 GOOGLE_SECRET=your_google-secret

 # facebook authenticate
 FACEBOOK_APP_ID=
 FACEBOOK_APP_SECRET=
Step 4 : Prisma operation
 # create prisma migration file and create tables in database
 > yarn prisma:migrate

 # insert seed data to database. users, tags, languages, roles, countries info
 > yarn prisma:seed
Step 5 : Run app and check swagger api documents in /docs route
 # app running on port 3000
 > yarn dev

Swagger has custom style.
Swagger user: app
Swagger password: secret

Front-end

  • Nextjs (react)
  • Tailwind and daisyui
  • Atomic design
  • Hygen generator
  • Custom authentication (jwt)
  • Custom hooks
  • Redux
  • Valtio
  • React-query
  • Cookie and storage
  • Multi theme
  • React-hook-form
  • React-select
  • Testing (testing-library/react and jest)

Front-end Instruction

Step 1 : Run this command for install dependencies (I using yarn)
 > cd frontend
 > yarn install
 # or
 > npm install
Step 2 : Run webapp
 # app running on port 3001
 > yarn dev

Best regards
Mostafa Gholami

Top categories

Loading Svelte Themes