Rocketlivery is a complex application delivery application, with a report generator for the orders done with cron jobs.
Project made on Ignite with Rafael Camarda at Elixir Journey.
It was used on development:
Before to start, you will need have installed on your computer these programs:
Also is good have a code editor like VSCode.
In your terminal clone the repository and install the dependencies.
git clone https://github.com/ruanmoreiraofc/rocketlivery-elixir.git
cd rocketlivery-elixir
mix deps.get
First of all you should setup ./config/dev.exs
and
./config/test.exs
, then run this command in your terminal:
mix ecto.setup
If need to create a migration, you can do that using this command in your terminal
mix ecto.gen.migration <migration_name>
mix ecto.migrate
In order to generate bearer tokens for your api, you need setup ./config/config.secrets.example
, replacing the placeholders with valid data and renaming it to config.secrets.exs
.
(ONLY ON bash
) you can paste this command to help you out
GUARDIAN_SECRET=$(mix guardian.gen.secret) \
bash .github/scripts/setup_secret.sh
Now see the result with:
mix test
mix phx.server
It will expose the app in localhost:4000
You can use the insomnia file to make simple requests to test on development environment!
This project is under the MIT license. See the LICENSE for more information.