forked from rauversion/rauversion-phx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added devcontainer and readme details with elixir 1.13
- Loading branch information
Showing
9 changed files
with
97 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM elixir:1.13.4 | ||
|
||
RUN apt update | ||
RUN apt install -y nodejs npm | ||
RUN apt install -y inotify-tools | ||
|
||
RUN mix local.hex --force | ||
|
||
RUN npm install --global yarn | ||
|
||
WORKDIR /workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "rauversion-phx", | ||
"dockerComposeFile": [ | ||
"./docker-compose.yml" | ||
], | ||
"extensions": [ | ||
"jakebecker.elixir-ls" | ||
], | ||
"service": "rauversion-phx", | ||
"workspaceFolder": "/workspace", | ||
"shutdownAction": "stopCompose", | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"search.exclude": { | ||
"**/doc": true | ||
}, | ||
"elixirLS.dialyzerEnabled": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: "3.7" | ||
services: | ||
db: | ||
image: postgres:14.3 | ||
restart: always | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
ports: | ||
- '5432:5432' | ||
volumes: | ||
- db:/var/lib/postgresql/data | ||
rauversion-phx: | ||
environment: | ||
PORT: 4000 | ||
DB_HOST: db | ||
MIX_BUILD_ROOT: /opt/elixir-artifacts/_build | ||
MIX_DEPS_PATH: /opt/elixir-artifacts/deps | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- 4000:4000 | ||
volumes: | ||
- ..:/workspace:delegated | ||
- ~/.gitconfig:/root/.gitconfig | ||
- ~/.gitignore:/root/.gitignore | ||
- ~/.ssh:/root/.ssh | ||
- elixir-artifacts:/opt/elixir-artifacts | ||
command: sleep infinity | ||
|
||
volumes: | ||
elixir-artifacts: {} | ||
db: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
# Rauversion | ||
|
||
To start your Phoenix server: | ||
|
||
## setup | ||
|
||
You can develop directly in a container with [vscode devcontainer](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) or [neovim devcontainer](https://github.com/jamestthompson3/nvim-remote-containers) | ||
|
||
* Install dependencies with `mix deps.get` | ||
* Create and migrate your database with `mix ecto.setup` | ||
* Create some fake accounts `mix fake_accounts` | ||
* Compile assets `cd assets && yarn install & cd ..` | ||
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server` | ||
|
||
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. | ||
|
||
|
||
# setup: | ||
|
||
### fake accounts | ||
|
||
iex -S mix fake_accounts | ||
|
||
|
||
### images | ||
## images | ||
|
||
https://unsplash.com/photos/eXVd7gDPO9A | ||
https://unsplash.com/photos/mbGxz7pt0jM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters