diff --git a/README.md b/README.md index 08d89e1..0213a79 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,18 @@ Ready to run in production? Please [check our deployment guides](https://hexdocs * Docs: https://hexdocs.pm/phoenix * Forum: https://elixirforum.com/c/phoenix-forum * Source: https://github.com/phoenixframework/phoenix + +## How to create a test environment? + +1. `cockroach start-single-node --insecure --background` +1. `mix deps.get` +1. Go to the website and create an account. +1. `iex -S mix phx.server` +1. Set all users as verified and admin. +1. `Uro.Repo.update_all(Uro.Accounts.User, set: [email_confirmed_at: ~N[2024-01-07 22:00:14]])` +1. `Uro.Repo.update_all(Uro.Accounts.UserPrivilegeRuleset, set: [is_admin: true])` + + +## Log into Cockroachdb sql shell + +`./cockroach sql --database="uro_dev" --insecure` \ No newline at end of file diff --git a/assets/package-lock.json b/assets/package-lock.json index 4b24563..e10c5a2 100644 --- a/assets/package-lock.json +++ b/assets/package-lock.json @@ -23,11 +23,11 @@ } }, "../deps/phoenix": { - "version": "1.6.15", + "version": "1.7.10", "license": "MIT" }, "../deps/phoenix_html": { - "version": "2.14.3" + "version": "3.3.3" }, "node_modules/@ampproject/remapping": { "version": "2.2.0", diff --git a/assets/webpack.config.js b/assets/webpack.config.js index e0e8355..088946d 100644 --- a/assets/webpack.config.js +++ b/assets/webpack.config.js @@ -8,10 +8,11 @@ const CopyPlugin = require("copy-webpack-plugin"); module.exports = (env, options) => ({ optimization: { minimizer: [ - new TerserPlugin({ cache: true, parallel: true, sourceMap: false }), + new TerserPlugin({ cache: true, parallel: true }), new CssMinimizerPlugin() ], }, + devtool: false, entry: { './js/app.js': glob.sync('./vendor/**/*.js').concat(['./js/app.js']) },