Public website of metaspexet.se and internal site haj.metaspexet.se. Still very much work in progress!
Prerequisites:
- You will need an env variables
LOGIN_API_KEY
, andLOGIN_HOST
set. You need to obtain an api key tologin
(https://login.datasektionen.se). - In order to run on local machine, you will need to alias DNS records between
localhost.datasektionen.se
anddatasektionen.se
to localhost. - Our images are served by an imgproxy server behind a Cloudfront CDN. You will need to use correct
IMGPROXY_KEY
andIMGPROXY_SALT
env variables set.
To start your Phoenix server:
This process requires docker, if you don't have it you can either install it here or follow the general instructions below. If you already have a normal postgres installation on your computer, use the general instructions below.
- Setup environment with
make mac-install-env
- Set correct data in the .env file in config/.env
- Run
make start-dev
, this should open up the website (you will have to reload it the first time)
When you have your docker database running, you can use mix phx.server
to start the server.
- Install dependencies with
mix deps.get
- Install npm dependencies with
cd assets && npm install && cd ..
- Create and migrate your database with
mix ecto.setup
- Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost.datasektionen.se:4001
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix