An open API service indexing awesome lists of open source software.

https://github.com/rvvergara/blog_site

To visit app demo click
https://github.com/rvvergara/blog_site

backend crud-application javascript mongodb mongoose nodejs passport passport-local restful-api web-application

Last synced: 5 months ago
JSON representation

To visit app demo click

Awesome Lists containing this project

README

          

RESTful Blog_App

[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Great%20RESTful%20App%20Example&url=https://github.com/rvvergara/blog_site&via=coachryanv&hashtags=nodejs,javascript,mongo,web-developer,restful-app)

First ever full-stack functional app I made.


I used NodeJS and ExpressJS in the backend; Semantic-UI and its dependency, jQuery, for the frontent.


All pictures are credited to Lorem Picsum Images.


All placeholder texts are credited to Professional Lorem Ipsum Generator.

There are some codes I used in the frontent which I credit to some Stackoverflow and Google searches I made. Most of these codes are for implementing Semantic UI components.

Notes:


A. For Locally Hosted :

  1. All node packages are included in this repo. Before cloning it, install nodeJS in your system.

  2. Check package.json and install all dependencies

  3. This repository does not include the database. Install MongoDB in your system and follow documentation to run mongod.exe and create root/data/db directory.

  4. seedDB() at line 50 of app.js is commented by default. Uncomment this line for new installations to have initial data.


B. For deployed sites on Heroku or other servers:

  1. Fork this repository

  2. Follow your web service provider's instruction on creating space for app

  3. Push repo to web server

  4. Use mLab to create database that will be used by app (please use your own database username and password in connecting mongoose to mLab database by editing line 24 of app.js file)

  5. Run in local/development environment command line:

    export DATABASEURL="mongodb://localhost/blog_site"

    and...

    heroku config:set DATABASEURL="mongodb://:@ds141320.mlab.com:41320/blog_site"