This is a Next.js project bootstrapped with create-next-app
.
- Create and configure your Hanko Cloud profile (see the instructions on how to get started with Hanko Cloud in Hanko Docs)
- Create a new project to get the Hanko API running.
- A running Hanko API (see the instructions on how to run the API from the Hanko backend).
Create the .env
file in the root directory, set up the correct environment variables:
DATABASE_URL="file:./dev.db"
: this is the URL to the SQLite database file that will be created inside theprisma
directory with the namedev.db
NEXT_PUBLIC_HANKO_API_URL
: this is the URL of the Hanko API, you can find it in your Hanko Cloud dashboard.
Run npm install
to install dependencies.
npm install
Run the following command to create your SQLite database file. This also creates the Todo table that is defined in prisma/schema.prisma
:
npx prisma migrate dev --name init
Run npm run dev
for a development server.
npm run dev
Now the app is running, navigate to http://localhost:8888/
. The application will automatically reload if you change any of the source files.