Application for facilitation military departments studies.
No one wants to go to a conscript army, to avoid it students have to attend to military departments in their universities, and no one wants to learn something and care about it because there is completely useless for their life.
But unfortunately if student do nothing he can be expelled from the department or have some problems there.
This application helps students to minimalize care about military studying.
We are against the conscription: 🌸 Make labs, not war 🌸
First of all you should create OAuth application on vk.com. You will need your application id and secret key from here.
Then you need to add custom hostname to your /etc/hosts
file. This hostname should be the same with one created in vk application. Let it be squadster.wtf
As soon as it's done clone the repo and configure environment:
git clone https://github.com/squadster/squadster-api.git
cd squadster-api
cp .env.sample .env
Then edit .env
file and change variables if needed.
Then install dependencies and create database:
mix deps.get
mix ecto.setup
That's all, load environment with source .env
, run the server with mix phx.server
and test it with
curl squadster.wtf:4000/api/ping
We use ESpec for testing. To run all specs execute
mix espec
NOTE: Deprecated Ruby-style syntax fails with OTP 21 and newer, so use Elixir way for it. See this comment.
This repo is only an API part of application. There are also some other parts:
- Frontend
Check out the repo and it's installation guides.
- Mercury
Bot for notifications via vk.com API. Check out the repo and it's installation guides.
We use GitHub packages for deployment.
Check out Dockerfile and this repo for more information.
Also check the Elixir deployment guides.
Your ideas and wishes are welcome via issues and pull requets.