Route | HTTP | Description |
---|---|---|
/article | GET | get all article |
/article | POST | create an article |
/article/:slug | GET | get one data article |
/article/:slug | PUT | update data article |
/article/:slug | DELETE | delete data article |
Route | HTTP | Description |
---|---|---|
/user/signup | POST | create new user |
/user/signin | POST | sign in user |
/user | GET | get all user |
/user/:username | GET | get one data user |
/user/:username | PUT | update data user |
/user/:username | DELETE | delete data user |
npm install express nodemon chai chai-http cors dotenv cors
mongodb mongoose passport passport-local passport-local-mongoose slug
npm start
npm run dev
sudo service mongod start
check connection @robomongo
Access the website via http://localhost:3000/