Code Monkey home page Code Monkey logo

next-bootstrap's Introduction

next.js / nextauth / apollo / graphql / prisma / - example

  • provides login through oauth / email,password / email otp and more
  • protected urls with helpers
  • database connection trough prisma
  • typegraphql for typesave data
  • maildev mail catcher to preview development mails
  • nodemailer / email-templates for sending emails

nextauth and apollo server are mounted in the next.js api

Getting Started

setup environemnt

the project contains a .tool-versions file which defines which dependencies are used through asdf VM. install asdf with brew brew install asdf or check the guide from asdf itself: https://asdf-vm.com/guide/getting-started.html#_3-install-asdf

afterwards two plugins are used for nodejs and postgres.

install them with:

asdf plugin-add postgres
asdf plugin-add ndoejs

setup first project

create your app with the bootstrap template

# create a new next.js app with the copy of this bootstrap repository
yarn create next-app --typescript --example https://github.com/philiplehmann/next-bootstrap

# change into the project directory
cd your-app-name

# install the right node and postgres version
asdf install

# install node dependencies
yarn install

# install prisma client
yarn prisma:generate

# start foreman with next.js / graphql server / maildev / postgres
yarn dev

Prisma Studio

interface to brows the database

yarn prisma:studio

Open http://localhost:5555 with your browser to see the result.

apollo studio

to get access from the apollo studio you have to expose the development env in the internet.

yarn ngrok:start

ngrok creates a proxy to the internet. take the https:// url and open it in the browser. for example: https://86d53dd10948.ngrok.io/api/graphql now press "query your server" to start the apollo graphql studio

next-bootstrap's People

Contributors

philiplehmann avatar

Stargazers

Itamar Peretz avatar

Watchers

 avatar James Cloos avatar  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.