As you can see, you have many options, including Java and ClojureScript projects, but for this first one, choose "Console - Clojure" and click "Create Project." Above the "Create Project" button is a text field for entering the Clojure namespace you want created for your project by default: leave that be for now. This one asks what type of project you want to create. ![]() Use the file dialog box to navigate to where you want to create your project and type my-clojure-project into the text box beside "File Name," like in this screenshot.Īfter that, click the "Save" button and you will see another dialog. When you are ready to try making a Clojure project, click the "New Project" button at the top left. If your window looks like the following, minus the arrows and green text, you are in business. Click to the right of the prompt and enter (+ 1 1). This area is called the REPL, which stands for "Read-Eval-Print-Loop," or in English, the place where you interact with Clojure. Look at the bottom left of the window where you should see the current version of Clojure and a prompt that says user=>. If not, open a terminal and run the following commands:Īfter this, you should see a Nightcode window like the one below. If you are on a Mac or using a graphical file browser on any operating system, you should be able to double-click it. Go into your Downloads folder (or wherever you save files from your browser) and run the nightcode-x.y.z-standalone.jar file. If you are using Linux, you probably know how to install it, and if not, look at your distribution's documentation.Ī file called nightcode-x.y.z-standalone.jar will be downloaded, where x.y.z is a version number. You will need Java installed: if you are using a Mac, you have it installed. To use it, first go to the Nightcode site and download the most current version. It bundles everything you need to use Clojure so you can get started quickly. ![]() Nightcode is an easy-to-use IDE for Clojure written by Zack Oakes. Emacs and Vim are good choices for Clojure editors, but they aren't for everybody and they can be complicated to set up. While using Clojure everyday is a blast, getting started with Clojure isn't always. Getting Started with Clojure using Nightcode
0 Comments
Leave a Reply. |