Skip to content

c5c86a/crypteia_2

Repository files navigation

Build Status codecov.io heroku

Intro

This is a crowdsourcing app on threat intelligence in rails and analytics with the chartkick gem.

Environment variables

The file config/secrets.yml is versioned as it just reads the environment variables SECRET_KEY_BASE , URL and PEM which are already set up at travis and heroku. To setup locally, ask us to provide you the file .env

Install postgres

sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list" wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get install postgresql-common sudo apt-get install postgresql-9.5 libpq-dev

sudo -u postgres createuser whoami -s

Setup DB

bundle install
rake db:create
rake db:migrate

rails c
$>s = Setting.new
%>s.save
%>exit

rails s

Notes

For production use, the following changes are necessary:

  1. make model User confirmable and setup mailcatcher
  2. make sure that this list is complete...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published