duct

Ahmed Hassan 2019-06-15T03:13:27.025300Z

When I type (go) in Clojure repl it gives following error.

2019-06-15T08:10:19.026Z

Seems like there is no directory exists. What you’ve done before that?

Ahmed Hassan 2019-06-15T08:35:08.026200Z

How to initialize this directory?

2019-06-15T08:43:32.026400Z

When I’ve tried it was created by template.

❯ lein new duct my-app +api +ataraxy +example +sqlite
Generating a new Duct project named my-app...
Run 'lein duct setup' in the project directory to create local config files.

❯ tree my-app
my-app
├── README.md
├── db
├── dev
│   ├── resources
│   │   └── dev.edn
│   └── src
│       ├── dev.clj
│       └── user.clj
├── project.clj
├── resources
│   └── my_app
│       ├── config.edn
│       └── public
├── src
│   ├── duct_hierarchy.edn
│   └── my_app
│       ├── handler
│       │   └── example.clj
│       └── main.clj
└── test
    └── my_app
        └── handler
            └── example_test.clj

13 directories, 10 files

2019-06-15T08:45:03.026600Z

❯ lein duct setup
Created profiles.clj
Created .dir-locals.el
Created dev/resources/local.edn
Created dev/src/local.clj

❯ lein repl
nREPL server started on port 61449 on host 127.0.0.1 - <nrepl://127.0.0.1:61449>
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.10.0
OpenJDK 64-Bit Server VM 11.0.2+9
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=&gt; (dev)
:loaded
dev=&gt; (go)
:duct.server.http.jetty/starting-server {:port 3000}
:initiated
dev=&gt;

2019-06-15T08:46:07.026800Z

It might be something with your sqlite configuration, or something with that directory.