A full-stack web application to detect and classify chemicals as Harmful, Questionable, or Safe based on their effects and usage quantity.
- Frontend: React 18 + Vite + Tailwind CSS + React Router
- Backend: Node 18 + Express 5 + Mongoose
- Database: MongoDB
- Node.js (v18 or later)
- npm
- MongoDB (local or Atlas)
-
Clone the repository:
git clone <repository-url> cd thechemhashira
-
Install all dependencies:
npm run install-all
-
Set up environment variables:
Create a
.envfile in the root directory and add the necessary variables (see.env.example).MONGO_URI=<your_mongodb_connection_string> PORT=5000 JWT_SECRET=<your_jwt_secret> NODE_ENV=development
npm run install-all: Installs dependencies for both client and server.npm run build: Builds both client and server for production.npm start: Starts the production server.npm run seed: Seeds the database with initial data.npm run dev: Runs both client and server in development mode.