TechBag is a web application developed using React, Express.js, MySQL, Prisma, AWS RDS, and Nodemailer. It provides a user-friendly form to capture customer details and store them in a relational database, while also sending a confirmation email to the customer.
To run the project locally, follow these steps:
- Clone the repository:
- Navigate to the project's root directory:
- cd TechBagWork
- Install backend dependencies:
- cd backend
- npm install
- Create a
.env
file in the backend directory and add the following environment variables:
- DATABASE_URL=Your Database Url
- PORT=5000
- EMAILUSER=
- EMAILPASSWORD=
- NODE_ENV=development
- Start the backend server:
- cd ..
- cd frontend
- npm install
- Create a
.env
file in the frontend directory and add the following environment variable:
- REACT_APP_BACKEND_URL=http://localhost:5000
- Start the frontend development server:
- npm run dev
- Open your browser and visit http://localhost:3000 to access the TechBag website.
- React: A JavaScript library for building user interfaces.
- Express.js: A web application framework for Node.js.
- MySQL: A popular open-source relational database management system.
- Prisma: An ORM (Object-Relational Mapping) tool used for database management and querying.
- AWS RDS: Amazon Relational Database Service, a managed database service provided by AWS.
- Nodemailer: A module for Node.js used for sending emails.
- Google OAuth 2.0: An authentication protocol used for user login and authorization using Google accounts.