This is a blog app built with React, Next.js, Prisma, and MongoDB.
To get started with the project, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/blog-app.git
- Install dependencies:
npm install
oryarn install
- Set up the database connection in the
.env
file. - Run the development server:
npm run dev
oryarn dev
- Open http://localhost:3000 in your browser to see the app.
- User authentication and authorization
- Create, read, update, and delete blog posts
- Comment on blog posts
- Like and share blog posts
- React: A JavaScript library for building user interfaces.
- Next.js: A framework for building server-side rendered React applications.
- Prisma: A modern database toolkit for TypeScript and Node.js.
- MongoDB: A NoSQL database for storing and retrieving data.
The project follows a standard folder structure:
pages
: Contains the Next.js pages for routing and rendering.components
: Contains reusable React components.styles
: Contains CSS stylesheets for styling the app.models
: Contains Prisma models for defining the database schema.controllers
: Contains controllers for handling API requests.services
: Contains services for interacting with the database.
To learn more about React, Next.js, Prisma, and MongoDB, refer to the following resources:
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.