Giter Site home page Giter Site logo

sailcal's Introduction

sailcal

Example OpenShift Clojure+JavaScript+SQL+Mongo app with calendar of sailboat reservations and tracks of past voyages. Frontend is JavaScript single-page app (SPA) with two main divs: a calendar based on Fullcalendar.io and a map based on Google Maps. Calendar shows history and future of dates on which sailboat is reserved based on data scren-scraped from reservation website. Calendar also shows past datess for which track data is available. Clicking a date with "Track" indicated causes map div to display track. Works with companion utilities 'sailrsv' to get reservation data and 'sailtrk' to get track data.

git clone https://github.com/mpiech/sailcal
cd sailcal

oc project myproj
oc import-image mpiech/s2i-clojure --confirm # from Docker Hub
# first time build
oc new-build mpiech/s2i-clojure~. --name=sailcal --env-file=env.cfg
# subsequent rebuilds
oc start-build sailcal --from-dir=. --follow

oc new-app sailcal --env-file=env.cfg
oc expose svc/myscal --port=8080

############################################################
# env.cfg should specify the following environment variables

RSVDB=
TRKDB=
GMAPS_KEY=
ATLAS_HOST=
ATLAS_USERNAME=
ATLAS_PASSWORD=
ATLAS_DB=
PGHOST=
PGUSER=
PGPASSWORD=
PGDB=
SLCAL_SQLUSR=
SLCAL_SQLPWD=
SLCAL_SQLDB=
SLCAL_MGUSR=
SLCAL_MGPWD=
SLCAL_MGDB=

Background

This project was developed on OpenShift using Clojure with Leiningen, Compojure, Enlive, JDBC, Monger, Emacs, Cider, nREPL, and others. Some notes regarding Clojure on OpenShift are in https://cloud.redhat.com/blog/using-clojure-on-openshift and https://cloud.redhat.com/blog/clojure-s2i-builder-openshift.

License

Copyright © 2014-2022

Distributed under the Eclipse Public License version 1.0 or later.

sailcal's People

Contributors

mpiech avatar

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.