You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TODO Practicalli Clojure Workflow - "There are many Clojure Workflows.. and this one is mine"
Clojure CLI is installed along with Java (21) as the host platform. Practicalli Clojure CLI config is the user configuration, containing a wide range of aliases that extend the features of Clojure CLI.
Create a new project using the app template or clone practicalli/clojure-app-template
Start a REPL via the command line, using an alias from practicalli/clojure-deps-edn
clojure -M:repl/reloaded
Library dependencies for Rebel and other development tools are already cached in the local maven repository, so startup should be very quick.
Although Clojure code can be evaluated in the terminal UI prompt for the REPL, it is more effective to use an editor connected to the REPL
In this video I am using Emacs, although the process is conceptually the same for Neovim, VS Code, Sublime Text and any other Clojure aware editor.
Start Emacs and connect to the running REPL
A Clojure file is opened from the project previously created.
The deps.edn file contains dependency and path configuration, along with some optional aliases.
The :deps keywork defines the library names and versions the project depends upon. An org.clojure/clojure library is included to set a specific version of Clojure to use. Otherwise the Clojure version shipped with the Clojure CLI tool is used.
The project is going to serve an API, so a server will be defined
Open the src/practicalli/gameboard/service.clj file in the editor
Create a rich comment to contain the code as we experiment. Editors supporting Clojure LSP can use the snippets to create a rich comment.
(comment )
look up a library for a http server (using find-deps either from an alias or via the dev/user.clj file)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Video scripts to evolve:
Clojure CLI is installed along with Java (21) as the host platform. Practicalli Clojure CLI config is the user configuration, containing a wide range of aliases that extend the features of Clojure CLI.
Create a new project using the app template or clone practicalli/clojure-app-template
The
:project/create
alias is defined in the Practicalli Clojure CLI config.clojure -X:deps aliases
lists the available aliases in the current project and the Clojure user configurationAdd a
dev/user.clj
file to the root of the created project.The
dev/user.clj
file configures the REPL during startup, adding library hotload, namespace reload and portal data inspectorStart a rich terminal UI repl prompt with a additional dev tools
Start a REPL via the command line, using an alias from practicalli/clojure-deps-edn
Library dependencies for Rebel and other development tools are already cached in the local maven repository, so startup should be very quick.
Although Clojure code can be evaluated in the terminal UI prompt for the REPL, it is more effective to use an editor connected to the REPL
In this video I am using Emacs, although the process is conceptually the same for Neovim, VS Code, Sublime Text and any other Clojure aware editor.
A Clojure file is opened from the project previously created.
The
deps.edn
file contains dependency and path configuration, along with some optional aliases.The
:deps
keywork defines the library names and versions the project depends upon. Anorg.clojure/clojure
library is included to set a specific version of Clojure to use. Otherwise the Clojure version shipped with the Clojure CLI tool is used.The project is going to serve an API, so a server will be defined
Create a rich comment to contain the code as we experiment. Editors supporting Clojure LSP can use the snippets to create a rich comment.
look up a library for a http server (using find-deps either from an alias or via the
dev/user.clj
file)The text was updated successfully, but these errors were encountered: