TimeToDrive is a project designed to streamline the process of managing driving schools. This guide will help you set up the application step-by-step.
Before you begin, make sure you have the following installed:
- Node.js (v16.x or later)
- Yarn (v1.22.x or later)
- MongoDB (Atlas or local instance)
- Git
Open your terminal and run:
git clone <repository-url>
cd OnTrack-mainNavigate to the api folder:
cd apiInstall dependencies:
yarn installCreate a .env file using the provided sample:
cp .env.sample .envConfigure the .env file with your MongoDB URI and other required settings.
Navigate to the client folder:
cd ../clientInstall dependencies:
yarn installIf required, create a .env file in the client folder and configure it with environment variables.
Navigate back to the api folder:
cd ../apiStart the server:
node api/index.jsOpen a new terminal, navigate to the client folder, and start the client:
cd client
yarn run devapi/: Backend code, including database models, controllers, and routes.client/: Frontend code, built with React and Tailwind CSS.
- Ensure MongoDB is running and accessible.
- Verify that environment variables in
.envfiles are correctly set. - Use
yarncommands instead ofnpmto avoid version mismatches.
