dev-resources.site
for different kinds of informations.
Nest-Connect API using NestJs, PassportJs, and Prisma
Published at
9/6/2024
Categories
nestjs
javascript
typescript
prisma
Author
Said MOUNAIM
Nest Connect
In-progress REST API with all basic features real social media has. Open to all contributions during development.
Getting Started
- Clone the repository:
git clone https://github.com/saidMounaim/nest-connect.git
- Install dependencies:
npm install
- Create a .env file in the root and add the following
DATABASE_URL=""
JWT_SECRET=""
CLD_CLOUD_NAME=""
CLD_API_KEY=""
CLD_API_SECRET=""
Features:
- registering and logging to user account
- posting photos
- commenting and liking photos
- following system
- all CRUD operations on posts, comments, follows and likes with relevant permissions
Technology Stack:
Default urls:
- Login User : localhost:3000/api/auth/login
- Register User : localhost:3000/api/auth/register
- Update Password : localhost:3000/api/auth/updatePassword
- Get Logged in User : localhost:3000/api/auth/me
- Get All Posts : localhost:3000/api/posts
- Get Single Post : localhost:3000/api/post/:postId
- Create Post : localhost:3000/api/posts
- Update Post : localhost:3000/api/post/:postId
- Delete Post : localhost:3000/api/post/:postId
- Get All Comments : localhost:3000/api/comments
- Add Comment : localhost:3000/api/post/:postId/comments
- Update Comment : localhost:3000/api/comment/:commentId
- Delete Post : localhost:3000/api/comment/:commentId
- Get All Likes By Post : localhost:3000/api/post/:postId/likes
- Like Post : localhost:3000/api/post/:postId/like
- Unlike Post: localhost:3000/api/post/:postId/unlike
- Get All Users : localhost:3000/api/users
- Get Single User : localhost:3000/api/user/:userId
- Search User : localhost:3000/api/users?search=john
Contribution
All kind of contributions are welcome, please feel free to submit pull requests.
- Version: 1.0.0
- License: MIT
- Author: Said Mounaim
Articles
12 articles in total
Dev Next a job platform built with Next.js, Tailwind CSS, Prisma, and NextAuth 💻
read article
Dev Next is a job platform built with Next.js, Tailwind CSS, Prisma, and NextAuth.
read article
Portfolio built with Next.js, TailwindCSS & Nodemailer
read article
AI Travel Planner app built with Next.js 15, Tailwind CSS, Prisma, Open AI, and Clerk
read article
Meetroomly app built with Next.js 15, Tailwind CSS, Prisma, and Clerk
read article
Image Reveal Animation with HTML, CSS, and GSAP
read article
Next.js 15 Form Component: A Beginner's Guide
read article
Social connect full-stack app using NestJs, Next.js, Prisma & Next-Auth
read article
Home Service Full-stack app using NestJs, Next.js, React Query TailwindCSS & Prisma
read article
Marketplace app using NestJS, Next.js 14, Tailwind CSS, Prisma, and NextAuth
read article
Nest-Connect API using NestJs, PassportJs, and Prisma
currently reading
Authentication in NestJS with PassportJS and Prisma
read article
Featured ones: