Using this template
- Setup an nhost project
- Use Abes nextjs template repo
- Connect our local repo to the nhost project
- Run the nhost project locally
- Deploy it to vercel
Setup an nhost project
Create your project at https://app.nhost.io/new
This creates:
- A postgresql database
- A hasura graphql server
- A nhost project
- A
hasura-auth
server - CI/CD pipeline for your hasura metadata + database migrations
Use Abes nextjs template repo
- Go to https://github.com/atbe/next-nhost-template
- Click the button
Use this template
at the top of the page - Clone the repo to your computer
- Run
yarn install
on the template repo
Connect our local repo to the nhost project
- Install the nhost cli
sudo curl -L https://raw.githubusercontent.com/nhost/cli/main/get.sh | bash
- Init the project
nhost init --remote
- Start the nhost server
nhost up
- In another terminal, start the nextjs project
yarn run dev