Skip to content

mrinalsaurabh/cljs-rte

Repository files navigation

cljs-rte

A re-frame application designed to provide common react components to other applications.

Deployment Pre-Requisites:

Steps to Deploy:

  • Checkout [email protected]:operational-insights/cljs-rte.git
  • Make changes, checkin.
  • Run lein uberjar in the cljs-rte folder.
  • Copy this to the jar file to ~/jars folder as:
mkdir ~/jars
mv <cljs-rte-directory>/target/cljs-rte-0.1.0-SNAPSHOT.jar ~/jars/cljs-rte-0.1.0.jar
  • Deploy the repo locally. Update the DVersion everytime. mvn deploy:deploy-file -Dfile=/home/vagrant/jars/cljs-rte-0.1.0.jar -DartifactId=cljs-rte -Dversion=0.1.0 -DgroupId=cljs-rte -Dpackaging=jar -Durl=file:maven_repository -Dmaven.repo.local=maven_repository -DcreateChecksum
  • Copy it to amazon folder. aws s3 cp /home/vagrant/jars/maven_repository/cljs-rte/cljs-rte/0.1.0 s3://cljs-rte/releases/cljs-rte/cljs-rte/0.1.0 --recursive

Steps to use:

  • Include it in your project.clj :dependencies section: [cljs-rte/cljs-rte "0.1.0"]
  • And Include in your project.clj :plugins section: [s3-wagon-private "1.3.0"]
  • Add a repositories section to the project.clj
:username :env/aws_access_key_id
:passphrase  :env/aws_secret_access_key}}```
* Set env variables
```export AWS_ACCESS_KEY_ID=<some_access_key>
export AWS_SECRET_ACCESS_KEY=<some_secret_key>```  
* `lein deps`

**Steps to run cljs-rte-demo**
* We need /api backend. For this purpose, run api
* `lein sass once` to create/update css files
* `lein figwheel` in the root folder.

**Steps to run test**
* `lein doo phantom test once`

**Production Build:**
**To compile clojurescript to javascript**

lein clean lein cljsbuild once min


**References:**
* http://ignaciothayer.com/post/Hosting-Clojure-Dependencies-on-S3/
* https://github.com/s3-wagon-private/s3-wagon-private




About

A rich text editor for clojurescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages