Skip to content

keypost-org/keypost-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keypost App

This serves as the main user facing application for authenticated users. Security is the number one priority!

Configuration

  • To override the default port, export ROCKET_PORT
  • Verbose mode for development, set ROCKET_LOG to debug
  • You can also consider adding a Rocket.toml file.

Development

  • 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 run down.sql and then up.sql, run diesel migration redo)
  • To start with a clean database, run diesel database reset
  • Additional diesel documentation can be found here and examples here

Web

Setup

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

Build

npm run build

Docker

docker build . -t keypost-app:latest
docker run --env DATABASE_URL --env KEYPOST_DATABASE_PSSWD keypost-app:latest

Deploy

About

The main application for Keypost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published