Sugar Framework - Sugar

1 min read Original article ↗

GETTING STARTED

Watch our video walkthrough

tl;dr

# Create your new project
mix new your_project
cd your_project

# Add '{:sugar, "~> 0.4.9"}'
# to your deps
vi mix.exs

# Get dependencies and compile them
mix do deps.get, deps.compile

# Add your Sugar files
mix sugar.init

# Start your server
iex -S mix
iex(1)> YourProject.Router.run

For an in-depth look at working with Sugar, head over to our Getting Started section, where we walk through the process of creating an application with Sugar from the start.