Clojure login/register with yesql, ring, selmer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources/views
src/soru_cevap
target
test/soru_cevap
README.md
project.clj

README.md

Login/register with yesql

Used csrf token in forms. You will need to install deps first.

Deps:

[org.clojure/clojure "1.8.0"]
[compojure "1.5.1"]
[ring/ring-defaults "0.3.1"]
[ring/ring-json "0.4.0"]
[mysql/mysql-connector-java "5.1.32"]
[yesql "0.5.3"]
[selmer "1.11.7"]
[org.clojure/tools.namespace "0.2.11"]
[proto-repl "0.3.1"]

Run

To start a web server for the application, run:

lein deps
lein ring server

Mysql table

CREATE TABLE users
(
   id BIGINT NOT NULL AUTO_INCREMENT,
   email text,
   password text,
   PRIMARY KEY (id)
);