This project is a prototype application that leverages AI technologies to provide an interactive and educational experience. It includes both a backend and a frontend, built with modern web development tools and frameworks.
Collecting workspace informationHere is a README.md file for your project:
# College Project Using AI
This project is a prototype application that leverages AI technologies to provide an interactive and educational experience. It includes both a backend and a frontend, built with modern web development tools and frameworks.
## Project Structure
Project/ ├── CollegeProjectUsingAI/ │ ├── Backend/ │ │ ├── .env │ │ ├── index.js │ │ ├── config/ │ │ │ └── db.js │ │ ├── Images/ │ │ │ └── Banner.png │ │ └── routes/ │ │ └── auth.js │ ├── project/ │ ├── src/ │ │ ├── components/ │ │ │ ├── LearnByDoing.tsx │ │ │ ├── Badges.tsx │ │ │ └── demo.tldr │ │ ├── App.tsx │ │ ├── main.tsx │ │ └── index.css │ ├── tailwind.config.js │ ├── tsconfig.json │ ├── vite.config.ts │ └── amplify.yml
## Features
### Backend
- **Authentication**: User authentication is handled via routes defined in `auth.js`.
- **Database Configuration**: The database connection is managed in `db.js`.
- **Static Assets**: Includes images like `Banner.png`.
### Frontend
- **React Components**: Interactive components such as `LearnByDoing.tsx` and `Badges.tsx`.
- **Styling**: Tailwind CSS is used for styling, configured in `tailwind.config.js`.
- **TypeScript**: The project is written in TypeScript for type safety.
- **Vite**: Vite is used as the build tool for fast development.
## Installation
1. Clone the repository:
```bash
git clone <repository-url>
cd CollegeProjectUsingAI
-
Install dependencies for both backend and frontend:
# Backend cd Backend npm install # Frontend cd ../project npm install
-
Set up environment variables:
- Create a
.envfile in theBackenddirectory and add the necessary variables.
- Create a
Start the backend server:
cd Backend
npm startStart the frontend development server:
cd project
npm run devThe project uses Vitest for testing. To run tests:
cd project
npm run testThe project includes an amplify.yml file for deployment. Ensure the dist directory is correctly configured as the output folder.
The project uses Vitest with code coverage enabled. Run the following command to generate a coverage report:
npm run test -- --coverage- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature" - Push to the branch:
git push origin feature-name
- Open a pull request.
This project is licensed under the ISC License.
- React: For building the frontend.
- Tailwind CSS: For styling.
- Vitest: For testing.
- Vite: For fast builds and development.
- Unsplash: For stock images.
cd Backend npm install
cd ../project npm install
cd Backend npm install
cd ../project npm install
cd Backend npm start
npm run test -- --coverage
cd project
npm run test
Save this content as `README.md` in the root of your project directory.