Skip to content

joshtom/Node-Prisma-Typescript-Blog-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains an implementation of a Blog API using NodeJS, Typescript, and Prisma.

Features

  • CRUD operations for Blog Posts and
  • Liking a Blog Post

Installation

  1. Clone the repository
  2. Install dependencies by running yarn install
  3. Start the application by running yarn start

Endpoints

The following endpoints are available:

  • POST /posts/create: Create a new Blog Post
  • POST /posts/createPostAndComments: Create a new Blog Post that allows Comments
  • GET /posts/getall: Get all Blog Posts
  • GET /posts/get/:id: Get a Blog Post by ID
  • PUT /posts/update/:id: Update a Blog Post by ID
  • DELETE /posts/delete/:id: Delete a Blog Post by ID
  • DELETE /posts/deleteall: Delete all Blog Posts
  • POST /posts/like: Like a Blog Post

Prerequisites

To use this application, you will need the following:

  • NodeJS
  • NPM
  • Typescript
  • Prisma

Contributing

If you find any bugs or issues with this repository, feel free to open an issue or submit a pull request.

Acknowledgements

This project was developed as a demonstration of NodeJS, Typescript, and Prisma. To read the Article, see this blog post.

About

This Repository Demonstrates the application of NodeJS, Typescript, and Prisma to create a Blog API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published