Easy Blog with Login (Mongodb - NodeJs - Express) API
How to use it ?
- Clone the repo
- npm install
- Change the Api routes to locally mongoose routes.
- open a console and type mongod to start MongoDB database "mongodb://127.0.0.1/react"
- in a new console type npm start
- Enjoy with a cool Blog.
in postman (POST) - http://localhost:5000/api/register
{
"username" : "test",
"password" : "123",
"first_name" : "testName",
"email" : "test@mail.com",
"last_name" : "testLastName",
"created_at" : "Date.now()"
}
you will get a 200 OK confirmation code.
in postman (POST) - http://localhost:5000/api/login
{
"email" : "test@mail.com",
"password" : "123"
}
you will get a 200 OK confirmation code.
You can Also make a CRUD with Posts...
Enjoy it