Local Setup

How to clone and run Ellie on your computer

Clone the repo

Ellie is open source and hosted on GitHub

Clone the repo to a local directory with Git

Get runtime dependencies

Ellie depends on the following projects for local development:

That's it! All of Ellie's runtime dependencies are managed by Docker, so you don't have to install any of the runtime systems it uses.

circle-exclamation

Set required configuration

When you run Ellie locally you will need a couple of environment variables. We try to keep this to a minimum so that set up is as simple as possible. Create a file named .env.local into the project root and copy the following variables into it.

It's okay to leave blank items blank. Their presence is temporarily required for startup but they are only used in production.

Start the application

Once you have Docker installed, you can use docker-compose to start the application.

This command will build and start Ellie's containers. Observe the output until the Webpack server is finished compiling and the Phoenix server is listening on port 4000. The Webpack output will look something like

and the Phoenix server will print

Both of these servers are configured to recompile and restart when you change source code. The particulars of how that occurs and when containers need to be restarted will require some knowledge of the Phoenix and Webpack development environments.

circle-exclamation

If you are able to open http://localhost:4000 and see Ellie running, congrats on successfully starting the project! In the next section we'll learn about how the Ellie server is architected.

Last updated