https://github.com/aimable01/blog_app_backend
This is the backend of a blog website. The technologies I used were: Express js, typescript and postgres as the database using 'pg'.
https://github.com/aimable01/blog_app_backend
Last synced: about 1 year ago
JSON representation
This is the backend of a blog website. The technologies I used were: Express js, typescript and postgres as the database using 'pg'.
- Host: GitHub
- URL: https://github.com/aimable01/blog_app_backend
- Owner: Aimable01
- Created: 2024-03-03T15:44:22.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-03T16:18:42.000Z (over 2 years ago)
- Last Synced: 2025-02-05T19:51:45.155Z (over 1 year ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
This is the backend of a blog_app where one has to first register or login. Once done, one can post a blog, like other blogs and also comment on them.
## Technologies
Language: Typescript**_|_**
Framework: Nodejs' Express js**_|_**
Database: Postgresql(pg)**_|_**
Authentication: JSONWebTokens**_|_**
API: RESTful api
### API endpoints
```javascript
// home page
localhost:3000/home
// register
localhost:3000/auth/register
// login
localhost:3000/auth/login
// view all posts
localhost:3000/post/
// create a post
localhost:3000/post/new
// update a post
localhost:3000/post/:id
// delete a post
localhost:3000/post/:id
// comment on a post
localhost:3000/comment/new
// delete a comment
localhost:3000/comment/:id
// like a post
localhost:3000/likes/like/:id
// unlike a post
localhost:3000/likes/unlike/:id
```
#### Conclusion
This is a good project to exercise your backend development skills.
Feel free to grab the codes for learning or your own projects.