This project uses SvelteKit for the frontend, MySQL as the database, and Prisma ORM for database management.
Ensure the following are installed:
git clone https://github.com/wahyunandanovan/svelte-fullstack-auth-user.git
cd svelte-fullstack-auth-user
git clone https://github.com/wahyunandanovan/svelte-fullstack-auth-user.git
cd svelte-fullstack-auth-user
Create a .env file in the root of the project and add the following:
DATABASE_URL="mysql://username:password@localhost:3306/database_name"
Create the database:
CREATE DATABASE database_name;
Generate the Prisma client:
npx prisma generate
Run the initial migration and sync Prisma with your database:
npx prisma migrate dev --name init
npm run dev