GithubHelp home page GithubHelp logo

diamondap / ring-sample Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 6.0 258 KB

A heavily-commented Clojure application demonstrating some of the features of Clojure and Ring.

JavaScript 4.82% Clojure 95.18%

ring-sample's People

Contributors

diamondap avatar isaksky avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ring-sample's Issues

`ring-sample.sqlite/init-db!` only works if I `mkdir data` first?

I just played around with the ring-sample and everything worked fine until I clicked on "Records in the SQLite database" on the main page. This led to the following stack trace in the shell:

["select * from characters order by name"]
Initializing SQLite database
#<SQLException java.sql.SQLException: path to 'data/characters.db': '/home/dmta/clojure/ring-sample/data' does not exist>
Exception: java.sql.SQLException: path to 'data/characters.db': '/home/dmta/clojure/ring-sample/data' does not exist
                           Conn.java:103 org.sqlite.Conn.open
                            Conn.java:57 org.sqlite.Conn.<init>
                            JDBC.java:77 org.sqlite.JDBC.createConnection
                            JDBC.java:64 org.sqlite.JDBC.connect
                  DriverManager.java:664 java.sql.DriverManager.getConnection
                  DriverManager.java:208 java.sql.DriverManager.getConnection
                            jdbc.clj:176 clojure.java.jdbc/get-connection
                            jdbc.clj:299 clojure.java.jdbc/with-connection*
                           sqlite.clj:86 ring-sample.sqlite/init-db!
...

Everything worked fine when I did mkdir data in the ring-sample root directory. I don't know if there's something wrong with my setup (missing write access or something) so that the DB driver is unable to create the directory itself but at least this report may be of help to others experiencing the same problem.

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.