A MERN Stack application built with MongoDB, Express, React, and Node.js, styled using Tailwind CSS. This project is a beginner-friendly crash course for learning how to develop a full-stack web application using the MERN stack.
git clone https://github.com/your-username/MERN-CRASH-COURSE.git
cd MERN-CRASH-COURSE
cd backend
npm install
Create a .env
file in the backend
folder and add:
PORT=5000
MONGO_URI=your_mongodb_connection_string
Start the backend server:
npm run dev
cd ../frontend
npm install
npm run dev
MERN-CRASH-COURSE/
āāā backend/ # Express.js Server
ā āāā models/ # Mongoose Models
ā āāā routes/ # API Routes
ā āāā config/ # Database Configuration
ā āāā server.js # Main Server File
ā āāā .env # Environment Variables
āāā frontend/ # React.js Application
ā āāā src/ # React Components & Pages
ā āāā public/ # Static Files
ā āāā tailwind.config.js # Tailwind Configuration
āāā README.md # Project Documentation
āāā package.json # Dependencies & Scripts
Method | Endpoint | Description |
---|---|---|
GET | /api/items |
Fetch all items |
POST | /api/items |
Create a new item |
PUT | /api/items/:id |
Update an item |
DELETE | /api/items/:id |
Delete an item |
Contributions are welcome! Feel free to fork the repository and submit pull requests.