https://github.com/dbernheisel/vite-phoenix-test
https://github.com/dbernheisel/vite-phoenix-test
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dbernheisel/vite-phoenix-test
- Owner: dbernheisel
- Created: 2021-01-20T16:23:55.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-20T16:57:14.000Z (about 5 years ago)
- Last Synced: 2025-07-09T16:11:14.492Z (9 months ago)
- Language: Elixir
- Size: 52.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyApp
Generated with `mix phx.new my_app --live --no-ecto`
This tries to get an integration between Vite and Phoenix.
Dev environment seems to be working, but prod deploys need some help still.
# Building for prod
To build for prod, run `bin/build` and `bin/start-prod`. The server will
run on port [`localhost:4000`](http://localhost:4000). You'll need docker
installed to build the image. This was tested on linux.
# Running for dev
To start your Phoenix server:
* Make sure Elixir and Erlang are installed. `brew install elixir` should be fine.
* Make sure node v14 is installed.
* Install dependencies with `mix deps.get`
* Install Node.js dependencies with `npm install` inside the `assets` directory.
* Start Phoenix endpoint with `mix phx.server`
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.