Giter VIP home page Giter VIP logo

nextjs-nestjs-graphql-starter's Introduction

NextJS & NestJS GraphQL Starter

A NextJS frontend and NextJS 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

nextjs-nestjs-graphql-starter's People

Contributors

tomanagle avatar dependabot-preview[bot] avatar dependabot[bot] avatar quochuydev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.