Full-Stack web app built with Typescript, Fastify, VueJS3, and Prisma.
Online Demo: https://fastify-vuejs-app.amirtheahmed.dev
Run Api via PostMan
This guide will walk you through the process of setting up and running the application on your local environment or using Docker.
- For local setup, ensure you have Node.js and NPM installed.
- Ensure you have a MySQL server operational on your machine.
- Create a new MySQL database for the application.
- For Docker, ensure you have Docker installed.
For local setup,
- navigate to
backend
directory and copy.env.example
to.env
and update the database connection string to your local MySQL server.
mysql://[username]:[password]@[host]:[port]/[database_name]
- Navigate to both
backend
andfrontend
directories and executenpm install
. - Navigate to the
backend
directory, runnpm run prisma:gen
andnpm run prisma:migrate-dev
to set up the database schema.
Execute npm run dev
in both backend
and frontend
directories to start the application locally.
With Docker installed, execute the following commands in the root directory:
docker-compose build
docker-compose up
The frontend will be accessible at http://localhost:4173, and the backend at http://localhost:3000.
A Postman collection is included in the base path for testing backend APIs. Import this collection into Postman to explore the API endpoints.