https://github.com/mglagola/todo.clj
Todo web app written in clojure
https://github.com/mglagola/todo.clj
Last synced: 6 months ago
JSON representation
Todo web app written in clojure
- Host: GitHub
- URL: https://github.com/mglagola/todo.clj
- Owner: mglagola
- Created: 2015-06-12T02:23:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-15T00:47:57.000Z (over 10 years ago)
- Last Synced: 2024-10-05T16:41:38.332Z (about 1 year ago)
- Language: Clojure
- Homepage:
- Size: 21.9 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo
Another todo web app... written in clojure.## Prerequisites
- You will need [Leiningen][1] 1.7.0 or above installed.
- postgresql for local testing
- [Heroku CLI][2] for deploying## Local
### Create postgresql database
Create a local postgresql database
```
$ cd path/to/todo.clj$ initdb pg
$ postgres -D pg
$ createdb todo
```### Running
To start a web server for the application, run:
```
$ lein ring server
```or in your clojure repl:
```clojure
;; in clojure repl
=> (use 'core.repl')
=> (start-server)
```## Deploying to Heroku
The following will deploy to heroku assuming you have the [heroku cli][2] installed:```
$ cd path/to/todo.clj$ lein with-profile production uberjar
$ git add .
$ git commit -m 'added project jar file'$ heroku create YOUR_APP_NAME
$ heroku addons:create heroku-postgresql:dev -a YOUR_APP_NAME
$ git push heroku master
$ heroku ps:scale web=1 -a YOUR_APP_NAME
```## License
Copyright © 2015 Mark Glagola MIT
[1]: https://github.com/technomancy/leiningen
[2]: https://devcenter.heroku.com/articles/heroku-command