- Clone the repository
- Install the dependencies
- In the root directory, run
npm install
- In the /server directory, run
npm install
- In the /client directory, run
npm install
- In the root directory, run
- Create the .env files
- Go to the /server directory and copy and complete the .env file
- Go to the /client directory and copy and complete the .env file
- Create a session.key file in the /server directory by running
cd server && npx @fastify/secure-session > session.key
- You may need to follow the instructions at database section to create the database.
- Start the project with
npm run start
(by default, the React app will be started on port 3000 and the API will be started on port 3001)
The frontend is developed using React.js and Typescript in the /client directory. The backend is developed using Node.js, Fastify and Typescript in the /server directory.
- Go to the /server directory
- With MySQL, create a database named according to the name given in the .env
- Use
npx prisma db push
to apply the schema to the database - Use
ts-node server/src/utils/fakerDatabase.ts
to generate fake data