Skip to content

BlogJS is a simple blog application built with AngularJS, Node.js and MongoDB. Creates your article and shares them in a beautiful minimalistic template.

License

Notifications You must be signed in to change notification settings

kdelemme/blogjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlogJS

Description

BlogJS is a simple blog application built with AngularJS, Node.js and MongoDB. Creates your article and shares them in a beautiful minimalistic template.

Features

  • Create Article
  • Edit Article
  • Delete Article
  • Add tags to Article
  • Add Authentication to the administration
  • Add registration for new user
  • Handle Logout
  • Add users management
  • Add Like to post
  • Add Comments to post
  • Add Like to comment

Dependencies

You need redis-2.8.9 up and running on port 6379

You need mongodb-2.4.10 up and running on port 27017

Installation

Clone the repository with: kevin@home:/$ git clone https://github.com/kdelemme/blogjs.git

Start Redis

Start your redis instance:

kevin@home:/var/www/angular/blogjs$ redis-server 
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 2.8.9 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in stand alone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 13499
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

[13499] 12 May 19:22:41.172 # Server started, Redis version 2.8.9
[13499] 12 May 19:22:41.172 * The server is now ready to accept connections on port 6379

Build angularjs app

The build result is already available, but if you want to build it yourself, install gulp and the dependencies, then run it.

install gulp and the gulp dependencies: kevin@home:/blogjs$ npm install

Edit app/js/app.js and replace the value of options.api.base_url to match your server configuration.

Run gulp to build the scripts of the AngularJS app with: kevin@home:/blogjs$ gulp

Install Nodejs App

Go to the api folder and install the dependencies: kevin@home:/blogjs/api$ npm install

Edit api/blog.js and replace the value of Access-Control-Allow-Origin to match your server configuration.

Run the application: kevin@home:/blogjs/api$ node blog.js

Run

You can now open your browser: http://localhost/blogjs/app

Create a first account on http://localhost/blogjs/app/#/admin/register

To access the Administration, go to http://localhost/blogjs/app/#/admin/login

Stack

  • AngularJS
  • Bootstrap
  • MongoDB
  • Redis
  • Node.js

Licence

The MIT License (MIT)

Copyright (c) 2014 Kevin Delemme ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Bitdeli Badge

About

BlogJS is a simple blog application built with AngularJS, Node.js and MongoDB. Creates your article and shares them in a beautiful minimalistic template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages