This is a simple flash cards web application that allows users to create, edit, and delete flash cards and decks.
-
Clone this repository.
-
Navigate to the project directory.
-
To run the server API:
- Navigate to the
apidirectory. - Install the dependencies by running
pnpm install. - Create the database with
pnpm db:push. - Seed the database with
pnpm db:seed. - Run the server with
pnpm dev. This will start the server onhttp://localhost:3000.
- Navigate to the
-
To run the application:
-
Navigate to the
webdirectory. -
Add a
.envfile towebdirectory with the following content:VITE_API_URL=http://localhost:3000
-
Install the dependencies by running
pnpm install. -
Run the application with
pnpm run dev. This will start the application onhttp://localhost:5173.
-