https://github.com/yogthos/cljs-eval-example
Example of using ClojureSript eval with Reagent
https://github.com/yogthos/cljs-eval-example
Last synced: 9 months ago
JSON representation
Example of using ClojureSript eval with Reagent
- Host: GitHub
- URL: https://github.com/yogthos/cljs-eval-example
- Owner: yogthos
- Created: 2015-11-13T00:11:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-20T15:56:10.000Z (over 4 years ago)
- Last Synced: 2025-04-30T20:04:00.904Z (9 months ago)
- Language: Clojure
- Size: 10.7 KB
- Stars: 32
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cljs-eval-example
This is the cljs-eval-example project.
## Development mode
To start the Figwheel compiler, navigate to the project folder and run the following command in the terminal:
```
lein figwheel
```
Figwheel will automatically push cljs changes to the browser. The server will be available at [http://localhost:3449](http://localhost:3449) once Figwheel starts up.
Figwheel also starts `nREPL` using the value of the `:nrepl-port` in the `:figwheel`
config found in `project.clj`. By default the port is set to `7002`.
The figwheel server can have unexpected behaviors in some situations such as when using
websockets. In this case it's recommended to run a standalone instance of a web server as follows:
```
lein do clean, run
```
The application will now be available at [http://localhost:3000](http://localhost:3000).
### Optional development tools
Start the browser REPL:
```
$ lein repl
```
The Jetty server can be started by running:
```clojure
(start-server)
```
and stopped by running:
```clojure
(stop-server)
```
## Building for release
```
lein do clean, uberjar
```
## Deploying to Heroku
Make sure you have [Git](http://git-scm.com/downloads) and [Heroku toolbelt](https://toolbelt.heroku.com/) installed, then simply follow the steps below.
Optionally, test that your application runs locally with foreman by running.
```
foreman start
```
Now, you can initialize your git repo and commit your application.
```
git init
git add .
git commit -m "init"
```
create your app on Heroku
```
heroku create
```
optionally, create a database for the application
```
heroku addons:add heroku-postgresql
```
The connection settings can be found at your [Heroku dashboard](https://dashboard.heroku.com/apps/) under the add-ons for the app.
deploy the application
```
git push heroku master
```
Your application should now be deployed to Heroku!
For further instructions see the [official documentation](https://devcenter.heroku.com/articles/clojure).