Small, lightweight pastebin+URL shortener written in Elixir using the Phoenix framework.
apicowboyelixiresbuildhacktoberfestnifno-javascriptpastebinphoenixpostgresqlrest-apirustshortenersyntax-highlighting
- Remove all webpack and babel related npm dependencies - Add esbuild and esbuild-plugin-postcss2 as a dependency - Add a custom `build.js` script to build css and js with esbuild and copy static files to the priv/static directory - Modify `config/dev.exs` to use that build script as a watcher instead of webpack - Modify `package.json` to use that build script in instead of webpack - Modify `KetbinWeb.Endpoint` to serve the assets directory instead of css and js directories from static - Modify the `app.html.eex` layout to use `assets` directory instead of separate css and js directories Signed-off-by: Akshit Garg <garg.akshit@gmail.com> |
||
|---|---|---|
| assets | ||
| config | ||
| lib | ||
| native/ketbin_utils_syntax | ||
| priv | ||
| test | ||
| .dockerignore | ||
| .formatter.exs | ||
| .gitignore | ||
| Dockerfile | ||
| Makefile | ||
| mix.exs | ||
| mix.lock | ||
| README.md | ||
| startup.sh | ||
Ketbin
To start your Phoenix server:
- Copy
config/dev.secret.sample.exstoconfig/dev.secret.exs - Fill in the SMTP and database configuration in
config/dev.secret.exs - Install dependencies with
mix deps.get - Create and migrate your database with
mix ecto.setup - Install Node.js dependencies with
npm installinside theassetsdirectory - Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000 from your browser.
Ready to run in production? Please check our deployment guides.
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