Skip to content
프로젝트

tomanagle/NextJS-NestJS-GraphQL-Starter

GitHub에서 보기

소개

프로덕션 환경에 사용할 수 있는 NextJS 및 NestJS GraphQL 스타터 키트

웹 및 앱 개발

이 수치를 측정하는 방법

What you can do

  • Google authentication
  • GitHub authentication
  • Reddit authentication
  • Update basic profile information

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

NextJS & NestJS GraphQL Starter

A NextJS frontend and NestJS backend GraphQL starter pack that includes GitHub & Reddit authentication.

Is something missing?

If there is a feature missing that is used in most production-grade applications, please make an issue so we can discuss adding it in.

Features

  • Google authentication
  • GitHub authentication
  • Reddit authentication
  • Subscriptions
  • Update basic profile information
  • Server rendering
  • Translation
  • Session management
  • docker-compose for client & server

Technologies

Getting started

  1. Install the required packages

    cd client && yarn
    cd server && yarn
    
  2. Update the .env files in the client & server

    cp client/.env.example .env
    cp server/.env.example .env
    
  3. Start the server & client

    cd server && yarn dev
    cd client && yarn dev
    

The client requires that the server is started so it can read the schema to run codegen. To remove that functionality, remove the predev hook in client/package.json

Deployment

The easiest way to deploy is:

  1. Create a DigitalOcean droplet using the Docker image
  2. Setup Nginx with this guide: How To Install Nginx on Ubuntu 18.04
  3. Clone the repository onto the droplet
  4. Add your .env files with your production configuration to the client and server
  5. Signup for MongoDB Atlas and get your connection string
  6. Mode the build script to make it executable: chmod +x ./build.sh
  7. Run the build script ./build.sh
  8. Modify and copy the supplied nginx.conf into /var/etc/nginx/sites-available/default
  9. Generate the SSL certificate with this guide: How To Secure Nginx with Let's Encrypt on Ubuntu 16.04

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

NestJS GraphQL tutorials

Support

Buy me a Coffee

Sign up to DigitalOcean I 💖 DigitalOcean

Subscribe on YouTube

License

MIT

관련 프로젝트 살펴보기

불러오는 중…