Giter Club home page Giter Club logo

datahike-heroku's Introduction

datahike-heroku

A clj-template for a web app running on Heroku using datahike with postgres.

Heroku App Setup

Ensure your newly generated app is backed with a git repo and commit the initial version, if isn't already

git init && git add --all && git commit -m "Initial commit" 

Create a heroku app and a postgres database for it (hobby dev is free)

heroku apps:create --region eu --addons heroku-postgresql:hobby-dev

Make heroku use the latest Clojure CLI version

heroku config:set CLOJURE_CLI_VERSION=1.10.1.763

Deploy

git push heroku main

This will print the URL of you're newly created app at the end.

What is included?

  • deps.edn used for dependencies
  • plumbing for deployment to Heroku, including a bin/build and Procfile and using depstar
  • datahike configured to use Heroku postgresql as the storage backend
  • a ring webserver configured to listen on the port provided by Heroku

See also

https://devcenter.heroku.com/articles/getting-started-with-clojure

License

Copyright © 2020 Dieter Komendera

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

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.