Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CristianoBarone/blogular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blogular

Angular blogging tool

Important news

As of July 2022, Google has cut support for Angular, thus this project won't be updated anymore despite my efforts to make the writer. Instead, I am focusing on a new software. The example page "crisblog.herokuapp.com" will be discontinued when the new software will be released.

Please consider this code obsolete, this project discontinued, and avoid using it.

About the software

What is this software?

This is a blogging software made in Angular with which you can compile your own customized blog with minimal effort.

How do I publish an article?

I am still working on a writer, more because of a safety reason than everything else. For the time being you can do like I do, directly tiping the HTML code in the "content" field of the article document.

What if I don't want to use Mongo for it?

Don't worry, to make it compatible with a custom backend you just need to make sure it returns an object containing

  • Title
  • Abstract
  • Content (plain HTML code)

when connecting to the backend with a /get/article/:id uri

and return an array of objects containing

  • Title
  • Abstract
  • ID

when connecting to the backend with a /get/articles uri

and return 404 whenever the :id entered in /get/article/:id is not pointing to an id on the database.

Default DB structure is

  • Title
  • Abstract
  • Content
  • ID

and it's advised to keep it like that if you don't want to modify the frontend software.

Which dependencies does the backend require?

  • Express (npm i express)
  • CORS (npm i cors)
  • Mongoose (npm i mongoose)

Which dependencies does the frontend require?

  • Axios (npm i axios)
  • @types/axios (npm i @types/axios)
  • @types/node (npm i --save-dev @types/node)