intellisense / risks

Django CRUD App for Generic Risk Models (Uses Vue.js)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django CRUD App for Generic Risk Models

Setup .env file to define environment variables (You only need to set in DEBUG=True on local env)

  • DEBUG (default=False)

  • DATABASE_URL (default=sqlite:///{}'.format(os.path.join(BASE_DIR, 'db.sqlite3'))

  • STATIC_S3_ENABLED (default=False)

    • Allow static content to be served from AWS S3
  • SITE_USES_SSL (default=False)

    • Set to True in production if using SSL
  • Example .env file might look like this

      DEBUG=True
    

Bootstraping dev environment

These steps will install all required dependencies including development ones, run migrations and start dev server.

make dev
make migrate
make run

Run tests

make test

Deployment

These steps will install production dependencies and build vue.js application to static/dist folder.

make prod
make build

After deployment step you can choose zappa to deploy app to AWS Lambda.

zappa deploy <project-name>

If using zappa fill in AWS S3 Bucket name in zappa_settings.json

About

Django CRUD App for Generic Risk Models (Uses Vue.js)

License:MIT License


Languages

Language:Python 61.4%Language:Vue 27.8%Language:JavaScript 7.5%Language:HTML 1.6%Language:Makefile 1.6%