Giter Club home page Giter Club logo

bandetta's Introduction

Bandetta

$ git clone https://github.com/genecyber/bandetta.git
$ cd bandetta
$ npm install
$ npm install -g bower
$ bower install
$ sails lift

Visit http://localhost:1337/

Admin access:

  • Username: admin
  • Password: admin

###Auto-reload server on file change /!\ Not to be used in production Make sure you have Nodemon installed: npm install -g nodemon Then instead of typing sails lift type nodemon -w . app.js The server will be automatically reloaded on file change.

Features

  • Authentification using Passport
  • Write post content with Markdown
  • Multiple Image uploader via Amazon AWS
  • Tags / Categories
  • Search
  • Cross-Site Request Forgery Protection
  • Notification system (Growl)
  • Semantic UI framework

Amazon Web Service Credentials

Amazon is used as a storage system for any images you woule like to add to a post. You have to define the credential in the configuration file located in the following folder /config/aws.js

Configure SailsJS to work locally

As SailsJS allow to configure a local environment, you should create a /config/local.js file which should include any settings specifically for your development computer such as:

aws: {
  accessKeyId: 'access key to be defined here',
  secretAccessKey: 'secret access key to be defined here',
  region: 'us-west-2',
  bucket: 'my-bucket-name',
  endPoint: 's3.amazonaws.com'
},

adapters: {
  'default': 'mongo',

  mongo: {
    module   : 'sails-mongo',
    host     : 'localhost',
    port     : 27017,
    user     : '',
    password : '',
    database : 'sailsjs-angular-blog'
  }
}

Specific customisation

Admin user is automatically created via /config/bootstrap.js. Default username/password: admin/admin

/config/404.js has been modified to redirect all requested page to layout.ejs with a 200 status.

Next to do

  • Comment system
  • User registration
  • ... and much more

bandetta's People

Contributors

genecyber avatar

Watchers

 avatar  avatar  avatar  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.