Visit 18F Consulting for details about this project.
This is a Ruby/Sinatra app, with a Jekyll static site in the _static
directory. The Jekyll site will be generated in the public/
directory, which Sinatra routes to automatically.
Don't edit the public/
folder directly! Jekyll will overwrite everything when building the site.
- Install Ruby
- Install Bundler (
gem install bundler
) - Install Postgres and make sure postgres/bin is on your $PATH.
- Create an
emanifest
database in your postgres instance. - Run
bundle install
to grab the required gems. - Run
rake serve
. This will build the Jekyll site and start the Sinatra server. If you have set a postgres username and password, try this:DATABASE_URL=postgres://<postgres user>:<password>@localhost/emanifest rake serve
or configure the DATABASE_URL environment variable as you see fit. - Go to
localhost:9292
and enjoy!
- To build the static site, run
rake build
. - To build and serve the app, run
rake serve
. - To deploy to 18F's cloud, run
rake deploy
.
This project is in the worldwide public domain. As stated in CONTRIBUTING:
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.