This repository contains the final project for Workshop Fullstack Web Development at Universitas Nasional by Fahmi Noor Fiqri (4-5 July 2023). The repository consists of two parts, the backend (MySQL+Prisma+Express) and frontend (Vite+React+Mantine).
- NodeJS 18 or newer
- MySQL instance (any flavor, XAMPP, Docker, etc.)
Before using this repo, it is encouraged to fork and clone this repository first.
In this tutorial, I'm assuming you're going to use the default settings for both the backend and frontend.
You can simply copy the default environment file but ONLY CHANGE the DATABASE_URL
in the backend repo
so it can connect to your local database, leave other settings without any changes.
- Start a local MysQL instance
- Create a
.env
file based on the.env.example
file - Adjust your environment configuration according to your DB configuration
- Run
npm install
to install package dependencies - Run
npx prisma migrate dev
to initialize database schema - (optionally) Run
npx prisma db seed
to insert initial/seed data - Run
npm run dev
to start the REST API server (port 3000)
- Run
npm install
to install package dependencies - Run
npm run dev
to start the web app (port 5173)
Licensed under MIT License.