Giter VIP home page Giter VIP logo

ajioka-lab-site's Introduction

Ajioka Lab site

Getting started

The CMS that powers the site is developed in Node.js, download the tarball and install it if not present:

$ ./configure
$ make
$ sudo make install

The CMS uses MongoDB 2 as a backend database; to install and start it up:

$ sudo apt-get install mongodb
$ sudo mongod

Install the dependencies of this "app" which is blad and then whatever packages you will be using in your site code; use package.json to define those then run:

$ npm install -d

Define the config for your site in config.json:

{
    "mongodb": "use process.env.DATABASE_URL instead",
    "browserid": {
        "provider": "https://browserid.org/verify",
        "salt":     "use process.env.API_SALT instead",
        "users": [
            "[email protected]",
            "[email protected]",
            "[email protected]"
        ]
    }
}
mongodb
A uri to a MongoDB database
browserid.provider
A BrowserID provider, the default is Persona.org by Mozilla
browserid.salt
A salt used to hash credentials so that an API key can be generated and used by the Chaplin admin. Do not leave it to default unless you know what you are doing!
browserid.users
An array of email addresses of people that should have access to the backend admin. If they have not created an account with the BrowserID provider, they will be offered a chance to do so on their first login to the site.

You will have noticed that the mongodb and browserid.salt values are not provided. If you are deploying to ukraine cloud, set these as follows (from within this directory):

$ chernobyl env <ukraine_ip> . DATABASE_URL=<mongo_uri>
$ chernobyl env <ukraine_ip> . API_SALT=<salt>

Finally start the service, take note that if you wish to start it on a specific port, pass it in as the process.env.PORT variable:

$ node start.js

If you need to define your custom page types and styles (you do), follow the guide associated with the blað CMS project page.

Database backup

Two helpful functions have been exposed to let you export/import pages of your CMS. Call them like so:

$ node export.js
$ node import.js

Be aware that the import wipes the database clean first!

Twitter timeline

Twitter no longer allows public access to a user's timeline. We are using Twitter RSS to fetch a user's timeline now.

ajioka-lab-site's People

Contributors

radekstepan avatar

Watchers

Bill Collins avatar James Cloos avatar

Forkers

ajioka-lab

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.