This project consists of a client-side React application built with Vite and a server-side Node.js application.
The client is a React application set up with Vite, Tailwind CSS, and ESLint.
In the client directory, you can run:
npm run dev: Starts the development servernpm run build: Builds the app for productionnpm run lint: Runs ESLint to check for code issuesnpm run preview: Locally preview the production build
The server is a Node.js application using Express and MongoDB.
In the server directory, you can run:
npm start: Starts the servernpm run dev: Starts the server with nodemon for development
- Clone the repository
- Install dependencies in both client and server directories: cd codegen/client && npm install cd ../server && npm install
- Start the development server for the client: cd ../client && npm run dev
- Start the server: cd ../server && npm start
- Client:
- Check
vite.config.js,tailwind.config.js,postcss.config.js, andeslint.config.jsfor configuration details. - Create a
.envfile in the client directory with the following variables:VITE_API_URL=http://localhost:<your_desired_PORT_for_server>/api
- Check
- Server:
- Create a
.envfile in the server directory with the following variables:
PORT=<your_desired_PORT_for_server> MONGODB_URI=<your_mongodb_connection_string> JWT_SECRET=<your_jwt_secret> CLIENT_URL=http://localhost:5173 API_KEY = <your_api_key> - Create a
To learn more about the technologies used in this project, check out the following resources: