• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

tomanagle/NextJS-NestJS-GraphQL-Starter: A production-ready NextJS & NestJS ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

tomanagle/NextJS-NestJS-GraphQL-Starter

开源软件地址(OpenSource Url):

https://github.com/tomanagle/NextJS-NestJS-GraphQL-Starter

开源编程语言(OpenSource Language):

TypeScript 92.6%

开源软件介绍(OpenSource Introduction):

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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap