mern-crash-course Tailwind Templates

Mern Crash Course

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.

MERN-CRASH-COURSE - https://mern-crash-course-1-5z8i.onrender.com/

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.


šŸš€ Features

  • šŸ”„ Full-Stack CRUD Application (Create, Read, Update, Delete)
  • šŸ› ļø Backend:
    • MongoDB with Mongoose
    • RESTful API with Express.js
    • Environment Variables with dotenv
  • šŸŽØ Frontend:
    • Modern UI built with React.js
    • Styled with Tailwind CSS
  • 🌐 End-to-End Connectivity:
    • API calls with Axios
    • State management with React Hooks

šŸ—ļø Installation & Setup

1ļøāƒ£ Clone the Repository

git clone https://github.com/your-username/MERN-CRASH-COURSE.git
cd MERN-CRASH-COURSE

2ļøāƒ£ Backend Setup

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

3ļøāƒ£ Frontend Setup

cd ../frontend
npm install
npm run dev

šŸ“‚ Project Structure

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

šŸ“Œ API Endpoints

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

šŸ› ļø Tech Stack

  • Frontend: React, Tailwind CSS
  • Backend: Node.js, Express.js, Mongoose
  • Database: MongoDB
  • Tools: Dotenv, Axios, Vite (for React)

šŸ¤ Contributing

Contributions are welcome! Feel free to fork the repository and submit pull requests.


šŸŽÆ Happy Coding! šŸš€

Top categories

Loading Svelte Themes