A simple blog project
Nodejs, npm, and MongoDB is required to run the server.
Before running server, copy or rename the .env-template file to .env, and edit it accordingly.
Google Cloud Platform JSON key file is needed to enable image uploading to Google Cloud Storage.
To run the server, go to the server directory run :
npm install
npm start
POST /api/users/login
email: registered email address
password: password associated with the specified email
POST /api/users/register
name: user's full name
email: user's email address
password: user's password
GET /api/articles/all
token: <token>
GET /api/articles
GET /api/articles/:articleId
POST /api/articles
title: article's title
tags: comma separated tags (e.g. : tag1,tag2,tag3)
content: article's content
PUT /api/articles/:articleId
title: article's title
tags: comma separated tags (e.g. : tag1,tag2,tag3)
content: article's content
DELETE /api/articles/:articleId
POST /api/articles/file/:articleId
image: the image file