Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 3.53 KB

README.md

File metadata and controls

75 lines (47 loc) · 3.53 KB

PhoenixStarter

Deploy

CI Docs

Setting up your development environment

There's three ways to set up your development environment - it's up to you to choose!

Using GitHub Codespaces for Cloud Development (recommended)

If you have access to GitHub Codespaces (currently in beta), you can start this project by clicking on "Code" (on GitHub's Interface) -> Open with Codespaces.

This will boot up a development environment on the cloud using Visual Studio Code including all service dependencies (databases & queues). It will also take care of installing dependencies and migrating the database.

After the environment boots, you can just:

$ mix phx.server

You'll now have a Phoenix server available at https://localhost:4000!

Using Visual Code Remote Containers for Local Development

Similar to Codespaces, you can also boot this repository using Visual Code Remote Containers, which is a neat way of booting an entire development environment (including databases and dependencies) using Docker, with the help of Visual Code.

In order to do so, you will need to:

After booting Visual Studio, you'll need to open the Command Palette (Shift+Cmd+P) and select "Clone Repository on Container Volume". You should be taken through a process that will end with a full-fledged development environment just as Codespaces.

Standard Local Development Environment

As PhoenixStarter is just a standard Elixir/Phoenix application, you can of course boot it using a local Elixir version installed in your machine.

In order to do so, you'll need to:

Once that's done, you should be able to download and set up the project by changing into the project's folder and executing the following command:

$ mix setup

This will download Elixir and Node dependencies, compile them, execute database migrations and seeds.

Starting your server

Assuming you've got PhoenixStarter running in either of the three ways described earlier, you should now be able to start your Phoenix server by executing the following command:

$ mix run priv/repo/dev_seeds.exs
$ mix phx.server

Now you can visit localhost:4000 from your browser.

Learn more