Skip to content
Studentersamfundets evige tilstedeværelse på den vide verdensvev.
Ruby HTML CSS JavaScript Gherkin Shell Other
Branch: master
Clone or download
kimisak Merge pull request #435 from Samfundet/fix_admission_management_butto…
…ns_permissions

Use Can^3 for permissions for admission buttons
Latest commit e52083d Aug 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ITK Fix the help in the ITK makefile Mar 16, 2016
app
bin Run rubocop autofix Feb 20, 2018
config Add time_zone_aware_types to application.rb Apr 9, 2019
db Fix role seed script, permissions & one_year_old view (#406) Feb 27, 2019
docs Remove declarative_authorization and move to Can^3 (#397) Feb 26, 2019
features Autofix rubocop Feb 20, 2018
hooks Add git hooks (#367) Feb 26, 2019
lib Fix role seed script, permissions & one_year_old view (#406) Feb 27, 2019
log Initial commit Mar 14, 2016
public Add Samfundet logo, png and svg (#170) Oct 27, 2016
script Autofix rubocop Feb 20, 2018
spec Remove declarative_authorization and move to Can^3 (#397) Feb 26, 2019
vendor/assets Billig form updates [ITK approved] (#389) Mar 14, 2019
.gitattributes Initial commit Mar 14, 2016
.gitignore Remove declarative_authorization and move to Can^3 (#397) Feb 26, 2019
.rspec Setup Rspec Feb 20, 2018
.rubocop.yml Remove declarative_authorization and move to Can^3 (#397) Feb 26, 2019
.rubocop_todo.yml Satisfy rubocop Feb 22, 2018
.travis.yml Update travis rvm version Feb 20, 2018
CONTRIBUTORS Make the LICENSE file recognizable by GitHub (#227) Feb 23, 2017
Gemfile
Gemfile.lock Remove declarative_authorization and move to Can^3 (#397) Feb 26, 2019
Guardfile Run rubocop autofix Feb 20, 2018
LICENSE Make the LICENSE file recognizable by GitHub (#227) Feb 23, 2017
Makefile Add git hooks (#367) Feb 26, 2019
README.md Update README.md Aug 7, 2019
Rakefile Run rubocop autofix Feb 20, 2018
config.ru
docker-compose.yml docker-compose for easy database setup (#404) Feb 26, 2019
en} Lyche admin access (#269) Oct 11, 2017

README.md

Samfundet.no

Contributing

Bug Reports and Feature Requests

Use the issue tracker to report any bugs or request features.

Developing

PRs are welcome. Follow these steps to set the website up locally:

Ubuntu

  1. Install RVM
  2. Install Ruby 2.3.3 via RVM using the following command
source ~/.rvm/scripts/rvm
rvm install 2.3.3 && rvm use 2.3.3 --default
  1. Choose a database password by running echo 'export SAMFDB_DEV_PASS="enteryourpasswordhere"' >> ~/.bashrc && source ~/.bashrc
  2. Database setup
  • Option 1 (requires Docker CE & docker-compose)
    1. Start the database: docker-compose up -d
    2. Install Postgres dependency sudo apt-get install libpq-dev
  • Option 2
    1. Install Postgres:sudo apt-get install postgresql postgresql-contrib libpq-dev
    2. echo -e "CREATE USER samfundet WITH PASSWORD '$SAMFDB_DEV_PASS';\nALTER USER samfundet CREATEDB;" | sudo -u postgres psql
  1. Run bundle install to install the required Ruby gems
  2. Set up the database by running (each line is a separate command!):
make copy-config-files
sed -i "s/password:.*/password: $SAMFDB_DEV_PASS/" config/database.yml
rake db:setup
  1. Start the Rails server by running rails server.

Add git hooks

You can optionally add checks before commits etc. through git-hooks. To apply them run

make git-hooks

This will add symbolic links in .git/hooks from the hooks dir.

License

MIT © Samfundet.no project authors

You can’t perform that action at this time.