Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/EFForg/sec
Security Education Companion
https://github.com/EFForg/sec
Last synced: 3 months ago
JSON representation
Security Education Companion
- Host: GitHub
- URL: https://github.com/EFForg/sec
- Owner: EFForg
- License: other
- Created: 2017-10-04T00:43:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T07:11:10.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T05:38:20.003Z (7 months ago)
- Language: JavaScript
- Homepage: https://sec.eff.org/
- Size: 2.47 MB
- Stars: 39
- Watchers: 15
- Forks: 7
- Open Issues: 52
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Security Education Companion [![build Status](https://travis-ci.org/EFForg/sec.svg?branch=master)](https://travis-ci.org/EFForg/sec)
## Development with Docker
$ cp .env.example .env
$ cp docker-compose.yml.example docker-compose.yml
$ docker-compose up --build -d
$ docker-compose exec app rake db:setupAfter running `rake db:setup` you can navigate to `http://localhost:3000/admin` and log in using:
- **User**: [email protected]
- **Password**: passwordRunning browser tests from within Docker is not currently supported. See [#477](https://github.com/EFForg/sec/pull/447) for more information.
## Development without Docker
* Install Ruby, Rails, and other gems the usual way.
* [install Yarn](https://yarnpkg.com/lang/en/docs/install/) and run `yarn install` to install Javascript dependencies.
* If you don't already have it, install or Chrome or Chromium for browser tests, eg `sudo apt install chromium-browser`.## Local Testing
It is sometimes useful to test the production environment locally. You
can do this by setting `DISABLE_SSL = true` in .env, and then using
RAILS_ENV=production:$ RAILS_ENV=production bundle exec rspec
$ RAILS_ENV=production bundle exec rails c
$ RAILS_ENV=production bundle exec rails s