This serves as the main user facing application for authenticated users. Security is the number one priority!
- To override the default port, export
ROCKET_PORT
- Verbose mode for development, set
ROCKET_LOG
todebug
- You can also consider adding a
Rocket.toml
file.
- Run db-init.sh
- To create a database migration,
diesel migration generate <name-of-db-actions-you-want-to-do>
- To run migration(s),
diesel migration run
(to rundown.sql
and thenup.sql
, rundiesel migration redo
) - To start with a clean database, run
diesel database reset
- Additional
diesel
documentation can be found here and examples here
- Built based on https://webpack.js.org/guides/getting-started/
cd static
npm install webpack webpack-cli --save-dev
npm install --save-dev html-webpack-plugin
npm install --save lodash
npm install --save-dev style-loader css-loader
npm run build
docker build . -t keypost-app:latest
docker run --env DATABASE_URL --env KEYPOST_DATABASE_PSSWD keypost-app:latest