Skip to content

Backend for reprocess content for Subtil project

License

Notifications You must be signed in to change notification settings

jonscherman/ex_backend

 
 

Repository files navigation

ExBackend

At this moment, the backend is composed of 2 parts:

  1. Back-end in Elixir which provide API,
  2. Front-end in Angular which consume API from back-end.

Requirements

The following tool must be installed on your computer:

  • Elixir development environment (see installation here)

Back-End

Installation

Backend installation:

  • Install dependencies
  • Create and migrate your database
  • To run the application locally in dev mode, in the config folder, you need to create a file dev.secret.exs which will contains use Mix.Config
mix deps.get
mix ecto.create && mix ecto.migrate

# update the config/dev.secret.exs

Front-end installation:

Install Node.js dependencies with :

cd assets && yarn install && cd ..

Start backend server locally

Start Phoenix endpoint with:

mix phx.server

Start backend with sample data

The backend can start with some sample data using:

mix dev

Launch front server locally

Now you can visit localhost:4000 from your browser.

Makefile targets

Commands below will be used for both stacks (backend & workers):

Command Description
make docker-build Build locally a docker image
make docker-clean Remove locally the built docker image
make docker-push-registry Push the locally built docker image
make up Launch both, the back and front end locally http://localhost:4000

Environment variables

Some variables are defined to apply a custom setting. These variables are listed here

Learn more

About

Backend for reprocess content for Subtil project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 40.5%
  • Elixir 32.4%
  • HTML 17.8%
  • Less 7.2%
  • Python 0.7%
  • SCSS 0.4%
  • Other 1.0%