This application allows users to create, delete, and view blogs from other users. It is built with modern technologies to ensure a smooth user experience and efficient performance.
- Frontend: Next.js
- Backend: Prisma, NextAuth
- Database: PostgreSQL
- UI Components: shadcn
- User Authentication: Secure sign-in and sign-up with NextAuth.
- Create Blogs: Users can write their own blog posts.
- Delete Blogs: Users can remove their posts.
- View Blogs: Explore blogs from other users.
Follow these instructions to get a copy of the project running on your local machine.
Make sure you have the following installed:
-
Clone the repository:
git clone git@github.com:anshux1/blogging-web.git
-
Navigate to the project directory:
cd blogging-web
-
Set up your environment variables:
Create a .env file in the root of the project with the following variables:
DATABASE_URL=postgresql://user:password@localhost:5432 NEXTAUTH_SECRET=your-secret-key
-
Install the dependencies:
yarn install
-
Run database migrations:
npx prisma migrate dev --name init
-
Running the App To start the app locally, run the following command:
yarn dev
This will start the development server on http://localhost:3000.