In this project, I made some endpoints for login user and create any posts and also like or dislike the post.
Created a simple blog app. User can sing-up and login and then post any post and also like or dislike the post
In this project, I have made a backend of a blog-app website using Express framework of NodeJS. I have also used JWT-authentication token to verify the if the user is valid or not.
Lets make a simple blog app with only the home page functional. a user should be able to:
-Register using email & password ( use JWT for authentication )
-Login
-Create a post
-See all posts from other users on home page ( sorted from most recent )
-Like/Dislike a post
-see how many likes/dislikes a post
$ sudo apt-get update
$ sudo apt-get install curl
$ sudo apt install build-essential apt-transport-https lsb-release ca-certificates curl
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt install nodejs
$ sudo apt-get update
$ sudo apt-get install mysql-server
$ sudo mysql -u root -p
Package Installation
$ npm install 'package_name'