nhost-sveltekit-example

Nhost Sveltekit Example

Nhost with SvelteKit Example

Getting started

  1. Clone the repository

    git clone https://github.com/onehassan/nhost-sveltekit-example
    cd nhost-sveltekit-example
    
  2. Install dependencies

    npm install
    
  3. Create a .env file and fill in with your nhost project's region and subdomain.

    PUBLIC_NHOST_REGION=
    PUBLIC_NHOST_SUBDOMAIN=
    
  4. Start the development server

    npm run dev
    

Running locally with the Nhost CLI

  1. Create new nhost project using the CLI

    Make sure you have the Nhost CLI installed.

    nhost init
    
  2. set the PUBLIC_NHOST_SUBDOMAIN to local in the .env file

    PUBLIC_NHOST_SUBDOMAIN=local
    
  3. Terminal 1: Start Nhost

    nhost up
    
  4. Terminal 2: Start the SvelteKit dev server

    npm run dev
    

Top categories

Loading Svelte Themes