Coder Social home page Coder Social logo

basic-next-app's Introduction

Next App

Description

This is a nextjs app build with the new app directory and the following technologies:

  • Nextjs on Vercel
  • MongoDB Atlas
  • Apollo Graphql on Heroku
  • Authentication with auth0

The next app is hosted on Vercel. It's called Basic Next App.

See the Basic Next App Deployment

See the Basic Next App project on Vercel

The MondoDB data is stored in a the Atlas Readylab group in a project called Graphql Apollo Mongodb Nextjs.

See the MongoDB Readylab Project

The Apollo Server is hosted on Heroku in a project called varioso.

See the Server repo on github

See the Varioso Heroku Project

See the Apollo Server Sandbox on Heroku

Use @auth0/nextjs-auth0 for authentication.

See the Auth0 Dashboard.

Get Started

In Dev

  • nvm use 16
  • npm install
  • npm run dev
  • visit localhost:3000

To deploy

You need to add secrets from your .env file to the settings in your Vercel app. Do that at settings/environment-variables

Auth

Use @auth0/nextjs-auth0 for authentication. See dashboard.

For the AUTH BASE URL:

  • prod: https://basic-next-app-alpha.vercel.app/
  • dev: http://localhost:3000/

For the auto0 settings page, you need to set the "Allowed Callback URLs". This will be localhost and your Vercel domain, e.g.

  • http://localhost:3000/api/auth/callback
  • https://basic-next-app-alpha.vercel.app/api/auth/callback

To create a secret, use `openssl rand -hex 32`` to generate a 32 bytes value.

Github

Want to update your credentials? Create a new token here.

basic-next-app's People

Watchers

Adam Kiryk 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.