Git Product home page Git Product logo

banking-on-clojure-webapp's Introduction

banking-on-clojure-webapp

A Clojure web application using clojure.spec libraries for defining data and function contracts to be used for generative testing.

A guide to the development of this project is on the Practicalli ClojureWebApps website.

CircleCI

Code Repository: practicalli/banking-on-clojure-webapp

Development

Open the code in a Clojure aware editor and start a REPL session.

Run all the tests in the project using the Cognitect Labs test runner, setting the classpath to include test directory. The aliases are included in the project deps.edn file.

clojure -A:test:runner

Running the code

Use the -M -m option to set the main namespace to inform Clojure where it can find the -main function to start the code running.

clojure -M -m practicalli.banking-on-clojure

Use the -m option by itself if using Clojure CLI tools version before 1.10.1.697

Packaging / Deployment

Clojure is deployed as a Java archive (jar) file, an archive created using zip compression. To package the code to run in a JVM environment, an uberjar is created which included the project code and the Clojure standard library. This is called an uberjar.

Use the alias for depstar tool to build an uberjar for this project. The alias is defined in the deps.edn file for this project.

clojure -A:uberjar

The code can be run from the uberjar on the command line

java -jar banking-on-clojure-webapp.jar

License

Copyright © 2020 Practicalli

Distributed under the Creative Commons Attribution Share-Alike 4.0 International

banking-on-clojure-webapp's People

Contributors

practicalli-johnny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

banking-on-clojure-webapp's Issues

typo in the command to run the webapp

Hi, in the README.md it says (line 24)

clojure -m practicalli.banking-on-clojure-webapp

but it should be

clojure -m practicalli.banking-on-clojure

to match the current path for the file the includes -main function.
other links are "clojure-webapp" instead of "clojure" so I think the namespace was changed in the file
but not anywhere else.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.