DEV Community

Said MOUNAIM
Said MOUNAIM

Posted on

2 1 1 1 1

Nest-Connect API using NestJs, PassportJs, and Prisma

Nest Connect

In-progress REST API with all basic features real social media has. Open to all contributions during development.

Getting Started

  1. Clone the repository: git clone https://github.com/saidMounaim/nest-connect.git
  2. Install dependencies: npm install
  3. Create a .env file in the root and add the following
DATABASE_URL=""

JWT_SECRET=""

CLD_CLOUD_NAME=""
CLD_API_KEY=""
CLD_API_SECRET=""
Enter fullscreen mode Exit fullscreen mode

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

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay