Skip to content

please use routes mentioned in the readme file .it's serverless backend application seamlessly integrating Eclipse Hono, Cloudflare, Prisma, and a powerful tech stack

Notifications You must be signed in to change notification settings

Rajgupta36/serverless-blog-application-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Simple Cloudflare app

The goal is to build the backend of a Blogging Platform. It NEEDS to work in a serverless environment (preferably use cloudflare workers)

User Management Endpoints:

  • POST /users/signup - User registration. Inputs: username, email, password Actions: Create a new user account. Perform validations and return a success message or error messages (e.g., email already in use, password requirements not met).

  • POST /users/signin - User login. Inputs: email, password Actions: Authenticate the user. Return a token (JWT) for authorization in subsequent requests if successful, or an error message if authentication fails. Blog Platform Endpoints:

  • GET /posts - Retrieve all blog posts. Actions: Fetch a list of all blog posts. Can be public or user-specific based on authentication.

  • POST /posts - Create a new blog post. Inputs: title, body Actions: Create a new blog post associated with the authenticated user. Require authentication.

  • GET /posts/:id - Retrieve a single blog post by ID. Actions: Fetch details of a specific blog post. Can be public or have additional details/edit capabilities for the owner.

  • PUT /posts/:id - Update a blog post by ID. Inputs: title, body Actions: Update the specified blog post if the authenticated user is the owner. Require authentication.

  • DELETE /posts/:id - Delete a blog post by ID. Actions: Delete the specified blog post if the authenticated user is the owner. Require authentication.

Database

Try using prisma as the ORM and Postgres as the provider.

About

please use routes mentioned in the readme file .it's serverless backend application seamlessly integrating Eclipse Hono, Cloudflare, Prisma, and a powerful tech stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published