https://github.com/mojotech/modernator
Moderate.
https://github.com/mojotech/modernator
Last synced: about 1 year ago
JSON representation
Moderate.
- Host: GitHub
- URL: https://github.com/mojotech/modernator
- Owner: mojotech
- License: epl-1.0
- Created: 2015-03-13T16:30:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-10T21:05:30.000Z (about 10 years ago)
- Last Synced: 2024-10-15T00:43:51.056Z (almost 2 years ago)
- Language: Clojure
- Homepage:
- Size: 1020 KB
- Stars: 3
- Watchers: 10
- Forks: 2
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://waffle.io/mojotech/modernator)
# Modernator
# development dependencies
* [postgres](http://postgresapp.com/)
* [leiningen](http://leiningen.org/)
* Install via homebrew `brew install leiningen`
* [foreman](https://github.com/ddollar/foreman)
* `gem install foreman`
# database
* `createdb modernator`
* `lein ragtime migrate`
# local dev
* `foreman start`
* navigate to http://localhost:8080
### Environment
To add or configure environment variables differently than [the default](src/clj/modernator/config.clj), simply copy the `.lein-env.sample` file and name it `.lein-env`.
# deploy
* Set up box with [postgres](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-14-04)
and [java](https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get) (just jre)
* Create postgres user
* Run migrations from migrations folder (still up in the air about the best way, I just scp-ed the files up and ran them)
* Create uberjar from project (`lein uberjar`)
* Upload standalone jar to box
* Set appropriate env vars
* `export MODERNATOR_URL=http://:8080/`
* `export DATABASE_URL=postgres://user:password@localhost:5432/modernator`
* `export SMTP_HOST=`
* `export SMTP_USER=`
* `export SMTP_PASS=`
* `java -jar `
* See the fruit of your labor at http://:8080
Copyright © 2015 MojoTech