The user here can create an account, create a post and like or unlike your own posts or the posts of the other users. The users can comment one post as well and the owner of the post or the owner of the comment can remove this comments. Click in the link bellow to access the API docs. API docs
This project requires Node.js v18+ to run and a database created in mysql 8 to manage the data. We need the Knex CLI installed to run the migrations.
Install the dependencies.
cd posts-nodejs-api
npm install
cp .env.example .env
Fill the dotenv created with your database credentials
knex migrate:latest
nodemon src/server.js
- Open the link http://localhost:5555 in the browser to start to use the API