Small, lightweight pastebin+URL shortener written in Elixir using the Phoenix framework.
Go to file
Akshit Garg 12ec98d15e
refactor(config): use secret files in dev mode
- Refactor `config/dev.exs` to use `config/dev.secret.exs` instead of
  fetching the SMTP information from the environment and using hardcoded
  database credentials. This is useful when different developers have
  different database credentials and they use different SMTP adapters
- Add a sample `dev.secret.exs` in `config/dev.secret.sample.exs`. Also
  gitignore the origin `dev.secret.exs` file
- Add instructions on how to setup the config file for development in
  `README.md`
- Add `Plug.Swoosh.MailboxPreview` plug on "/mailbox" route in
  development mode for easier development with e-mails

Signed-off-by: Akshit Garg <garg.akshit@gmail.com>
2021-08-21 16:47:31 +05:30
assets chore(build): remove node-sass and sass-loader 2021-08-20 07:00:07 +05:30
config refactor(config): use secret files in dev mode 2021-08-21 16:47:31 +05:30
lib refactor(config): use secret files in dev mode 2021-08-21 16:47:31 +05:30
native/ketbin_utils_syntax chore(native): run cargo fmt 2021-08-17 03:24:30 +05:30
priv chore: prepare for prod 2021-08-14 01:19:00 +05:30
test chore: generate resources for pastes 2021-08-12 03:28:28 +05:30
.dockerignore fix(build): add rust and cargo dependency to builder image 2021-08-17 03:22:52 +05:30
.formatter.exs chore(git): Initial commit 2021-08-09 14:18:23 +05:30
.gitignore refactor(config): use secret files in dev mode 2021-08-21 16:47:31 +05:30
Dockerfile fix(build): add rust and cargo dependency to builder image 2021-08-17 03:22:52 +05:30
Makefile chore(build): add makefile 2021-08-14 14:55:22 +05:30
mix.exs feat(users): wire up forgot password to swoosh 2021-08-20 02:09:14 +05:30
mix.lock feat(users): wire up forgot password to swoosh 2021-08-20 02:09:14 +05:30
README.md refactor(config): use secret files in dev mode 2021-08-21 16:47:31 +05:30
startup.sh chore: prepare for prod 2021-08-14 01:19:00 +05:30

Ketbin

To start your Phoenix server:

  • Copy config/dev.secret.sample.exs to config/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 install inside the assets directory
  • 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