A minimalist social media application that allows users to create profiles, write blogs, and interact with others. Built with a modern tech stack to ensure performance, scalability, and ease of use.
- User Authentication: Secure user login via GitHub using NextAuth.
- User Profiles: Create and customize user profiles.
- Blog Creation: Write, publish, and share blogs.
- Responsive Design: Mobile-first design using Tailwind CSS for a seamless user experience across devices.
- Database: Powered by PostgreSQL for reliable data storage, hosted on Neon.
- Frontend: React, Next.js
- Backend: Prisma, NextAuth
- Database: PostgreSQL (via Neon)
- Styling: Tailwind CSS
- Deployment: Vercel
-
Clone the repository:
git clone https://github.com/shahin-r71/my-space.git cd my-space
-
Install dependencies:
npm install
-
Set up environment variables:
Create a
.env
file in the root directory with the following content:DATABASE_URL=<your-postgresql-database-url> AUTH_SECRET=<your-nextauth-secret> AUTH_GITHUB_ID=<your-github-client-id> AUTH_GITHUB_SECRET=<your-github-client-secret>
-
Run database migrations:
npx prisma migrate dev
-
Start the development server:
npm run dev
-
Open the app in your browser at http://localhost:3000.