Coder Social home page Coder Social logo

somewhereintheword / mean-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dimimikadze/mean-blog

0.0 2.0 0.0 16 MB

Blog using Nodejs, Expressjs, Angularjs and Mongodb. MEAN Javascript Fullstack application

License: MIT License

JavaScript 78.91% CSS 19.36% HTML 1.73%

mean-blog's Introduction

Mean Blog

Blog using Nodejs, Expressjs, Angularjs and Mongodb. MEAN Javascript Fullstack application

Features

  • Create/Edit/Delete Article
  • Passport Authentication for Administration
  • Bcrypt Password Hash
  • Angular ui router
  • textAngular Text-Editor
  • Sass

Server Side Dependencies

"bcrypt": "^0.8.4",
"body-parser": "^1.13.2",
"connect-flash": "^0.1.1",
"cookie-parser": "^1.3.5",
"ejs": "^2.3.3",
"express": "^4.13.1",
"express-session": "^1.11.3",
"mongoose": "^4.1.0",
"morgan": "^1.6.1",
"passport": "^0.2.2",
"passport-local": "^1.0.0"

Client Side Dependencies

"textAngular": "~1.4.2",
"bootstrap": "~3.3.5",
"angular": "1.4.3",
"angular-ui-router": "~0.2.15"

Getting Started

Clone Repo

git clone https://github.com/DimitriMikadze/Mean-Blog.git

Npm install dependencies

cd server & npm install

Create config.js file in config folder

module.exports = {
    'secret': 'SomeSecretString',
    'database': 'mongodb://localhost/yourdatabasename'
};

Start Mongodb

mongod

Start Server

cd server & node app.js

Create Admin User

uncomment testUser route in app.js

app.use("/", require("./routes"));
app.use("/admin", require("./routes/admin"));
// app.use("/test", require("./routes/testUser"));

Navigate to

/test/create-user/your-name/your-password

this will create admin user with your name and hashed password

User Admin

Navigate to

/login

Insert your newly created name and password

Change Styles

Css is written with Sass, you can update scss files with running

cd client/public & sass --watch scss:css

or if you don't want to use Sass just update

client/public/css/app.css

Grunt Packages

grunt-contrib-concat
grunt-contrib-watch

Start Grunt

Grant will concatenate admin script and css files and watch for changes

cd client
grunt

output will look like this

Running "concat:js" (concat) task
File app/scripts.js created.

Running "concat:css" (concat) task
File public/css/admin/bundle.css created.

Running "watch" task
Waiting...

Contributing

contributions are more than welcome!

License

See license.txt

mean-blog's People

Contributors

godspeedyoo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.