Git Product home page Git Product logo

cms's Introduction

CMS

The CMS behind CodePilot.

It was built in a weekend.

Installing CodePilot CMS

This project is currently in heavy development and things might be horribly broken. Make sure you have Node.js (& NPM), MySQL, and Redis installed and running.

  1. Copy app/config.example.json to app/config.json. In app/config.json, fill in your MySQL details, Twitter OAuth information, and S3 details. If the database schema changes, open app/models/index.js and set the forceDatabaseUpgrade property to true. Restart the server, and the dabatase will be wiped and updated to the new schema, and seeded with dummy data.
  2. Run npm install This'll take a while as it fetches CodePilot's dependencies.
  3. Run npm start. Assuming everything is okay, you'll be able to access CodePilot at http://localhost:3000/.
  4. If you want data to be seeded on database upgrade, copy app/models/fixtures.example.json to app/models/fixtures.json. You can modify app/models/fixtures.json as necessary to change the dummy data to fit your needs. (Optional)

When you make a change, you will have to stop the server by pressing ^C, and then start it up again.

Common Errors and how to fix them

TypeError: Uncaught, unspecified "error" event.

This is most likely caused because your MySQL server is not running. Start the server and try again.

Error: OAuthStrategy requires session support. Did you forget app.use(express.session(...))?

This is caused by your Redis server not running. Start your Redis server using the redis-server command and try again.

TypeError: Cannot read property 'sequelize' of undefined

b36b0b introduced a new config option.

Update your config.json file to match the latest config.example.json template.


Special thanks to: (in no particular order)

Contributor GitHub Twitter
Will Smidlein ws ws
Joe Torraca jtorraca jtorraca
Lenny Khazan LennyKhazan LennyKhazan
Ross Penman rosspenman PenmanRoss
Charley Hutchison glenwayguy glenwayguy
Nick Frey NickFrey NickFrey
Daniel Tomlinson DanielTomlinson dantoml

cms's People

Contributors

ws avatar jvt avatar alyssais avatar lk avatar hutchisonc avatar ndrewh avatar unlobito avatar hyl avatar kenany avatar nickfrey avatar

Watchers

James Cloos 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.