Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thansen0/phoenix_pcw
The phoenix website for PCW
https://github.com/thansen0/phoenix_pcw
Last synced: 30 days ago
JSON representation
The phoenix website for PCW
- Host: GitHub
- URL: https://github.com/thansen0/phoenix_pcw
- Owner: thansen0
- Created: 2023-12-18T08:27:49.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-07T01:11:50.000Z (5 months ago)
- Last Synced: 2024-09-07T19:40:21.220Z (4 months ago)
- Language: Elixir
- Size: 115 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parentcontrolswin
To start your Phoenix server:
* Run `mix setup` to install and setup dependencies
* 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.
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
## Learn more
* 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## Commands
These are all the commands I've run which build things (gen.phx.html, live, etc). Consider `--binary-id` in the future if I retry building it
```
mix phx.new parentcontrolswin --binary-id # add no tailwind in future?
mix pow.install Users.User users content_filters:string # note this doesn't actually add the content_filters field
mix pow.phoenix.gen.templates
mix phx.gen.html Devices Device devices name:string user_id:integer --binary-id
```And building may use one or all of these commands:
```
mix phx.digest
mix compile
```## Database
For production, this uses postgres, and I like interfacing with DBeaver just because it installs with snap.
```
sudo snap install dbeaver-ce
dbeaver-ce
```## Environment vairables and Gigalixir
To add an environment variable to gigalixir
```
gigalixir config:set SECRET_KEY_BASE="your_secret_value" -a parentcontrolswin
```To view
```
gigalixir config -a parentcontrolswin
```And to push to gigalixir
```
git push gigalixir master
```And their [setup guide can be helpful](https://www.gigalixir.com/docs/getting-started-guide/)