This project is part of the Web Engineering course MAS2023 and aims to develop a flashcard application. The application allows users to create, manage, and review flashcards.
The application was developed using React, Vite, TypeScript and HMR (Hot Module Replacement), along with some ESLint rules.
Clone repository:
git clone <repository-url>
cd <repository-name>
Install dependencies:
pnpm i
pnpm run dev
: Starts both the client and the server in development mode.pnpm run dev:client
: Starts the client in development mode.pnpm run dev:server
: Starts the server in development mode.pnpm run build
: Build project..pnpm run preview
: Preview the built version of the project.pnpm run lint
: Executes ESLint to check the code.Username | Password | Role |
---|---|---|
admin | admin-pw | Admin |
player | player-pw | Player |
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
parserOptions
property like this: parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
plugin:@typescript-eslint/recommended
to plugin:@typescript-eslint/recommended-type-checked
or plugin:@typescript-eslint/strict-type-checked
plugin:@typescript-eslint/stylistic-type-checked
plugin:react/recommended
& plugin:react/jsx-runtime
to the extends
list