atbe / next-nhost-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using this template

  1. Setup an nhost project
  2. Use Abes nextjs template repo
  3. Connect our local repo to the nhost project
  4. Run the nhost project locally
  5. Deploy it to vercel

Setup an nhost project

Create your project at https://app.nhost.io/new

This creates:

  1. A postgresql database
  2. A hasura graphql server
  3. A nhost project
  4. A hasura-auth server
  5. CI/CD pipeline for your hasura metadata + database migrations

Use Abes nextjs template repo

  1. Go to https://github.com/atbe/next-nhost-template
  2. Click the button Use this template at the top of the page
  3. Clone the repo to your computer
  4. Run yarn install on the template repo

Connect our local repo to the nhost project

  1. Install the nhost cli
    sudo curl -L https://raw.githubusercontent.com/nhost/cli/main/get.sh | bash
  2. Init the project
    	nhost init --remote
  3. Start the nhost server
    nhost up
  4. In another terminal, start the nextjs project
    yarn run dev

About

License:MIT License


Languages

Language:TypeScript 53.9%Language:CSS 34.8%Language:JavaScript 7.8%Language:Dockerfile 1.8%Language:Shell 1.6%