YOLO You are hyped when someone mention microservices? Look no further Microblog is the first blog in Lotus Framework - EVER!
Run ./setup.sh
To start the server:
bundle exec lotus server
Then you could browse the site with 0.0.0.0:2300
The admin page is at /admin and the default username/password is "admin/password". You can change
password to what you like by modifying ADMIN_PASSWORD variable in config/env.development.
To run tests:
bundle exec rake spec
Set up Heroku:
heroku create
Set up DB URL by getting the URL with:
heroku config | grep HEROKU_POSTGRESQL
You should get something like HEROKU_POSTGRESQL_COLOR, which value is used to set DB URI:
heroku config:set MICROBLOG_DATABASE_URL="postgres://something:[email protected]:5432/something"
Then run
heroku run rake db:migrate
heroku run rake db:seed
Last step is to set admin password:
heroku config:set ADMIN_PASSWORD="password"
Deploy with:
git push heroku master
Once done, try to the deployed app with:
heroku open
Great thanks to Luca Guidi for creating Lotus Framework
Also thanks to Nikolay Nemshilov for his pain.less.css
MIT
- Add support for migration generator / schema for Lotus Framework
- Add pagination
- Use named routes for Admin templates/forms (must be fixed in Lotus core)
- Add unit / integration tests
- Support user login feature (waiting for session non-persistence error to be resolved upstream in Lotus core)
- Find a way to share vendor JS/stylesheets between 2 apps
Please feel free to submit PRs :)
© 2014 Trung Lê