Skip to content

asukiaaa/duct-crud-practice

Repository files navigation

duct-crud-practice

A CRUD application with using duct.

Warning

This application doesn't consider SQL Injection Prevention. You need to consider it to use for production.

Developing

Setup

You need to setup porgreSQL with referencing this memo.

When you first clone this repository, run:

lein duct setup

This will create files for local configuration, and prep your system for the project.

Environment

To begin developing, start with a REPL.

lein repl

Then load the development environment.

user=> (dev)
:loaded

Run go to prep and initiate the system.

dev=> (go)
:duct.server.http.jetty/starting-server {:port 3000}
:initiated

Access to http://localhost:3000/users. You can check path by referencing handler files.

When you make changes to your source files, use reset to reload any modified files and reset the server.

dev=> (reset)
:reloading (...)
:resumed

Execute without repl

You can execute system with passing database url.

DATABASE_URL="jdbc:postgresql://localhost/duct_crud_practice?user=clojure_user&password=secret" lein run

License

MIT

References

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published