Giter Site home page Giter Site logo

zeuswpi / tap Goto Github PK

View Code? Open in Web Editor NEW
1.0 9.0 5.0 13.62 MB

:beer: Yes. We have to drink. But we also have to pay. This does the drinking part.

Home Page: https://tap.zeus.gent

Ruby 62.86% JavaScript 4.99% HTML 21.05% Python 0.30% SCSS 9.75% Dockerfile 0.68% Makefile 0.31% Shell 0.06%
rails ruby hacktoberfest

tap's Introduction

Code Climate Ruby Coverage Status

๐Ÿบ Yes. We have to drink. But we also have to pay. This is the drinking part.

Development

To provide a consistent experience on every system, docker and docker-compose is used during development and production.

Using Docker and Make (recommended)

Linux/Unix

  1. Install Docker and Docker Compose

  2. Start the development server

    make dev

    This will start a development server on http://localhost:3000

  3. Seed the database.

    make dev-seed

    The development setup uses an SQLite 3 database, which can be found under /db/development.sqlite3

Windows

  1. Install WSL (Windows Subsystem for Linux)
  2. Follow the instructions for Linux/Unix above

Directly on your system

  1. Install asdf
  2. Install dependencies: asdf install
  3. Install gems: bundle install
  4. Migrate the db using bundle exec rails db:migrate
  5. Seed the db using bundle exec rails db:seed
  6. Start Tap by running bundle exec rails s

Production

You can generate a production docker image using:

make build

The image will be tagged under tap:latest

FAQ

Can I use Tap for development without setting up Tab? Tap does not sync with Tab when in development mode. The user's balance is mocked by ฦต12.34 instead.
How do I login as the "Koelkast" user? In development, you can login as Koelkast using the link: https://localhost:3000/sign_in?token=token
I get a "mismatching_redirect_uri" error when trying to login The Zeus authentication provider has a pre-configured list of hosts that are allowed to use the login. http://localhost:3000 is on this list and should be used for development.
Docker image build is stuck on "Fetching gems..." or another command If you are connected to the **`eduroam`** network, Docker build will not have access to the internet. This is because eduroam and docker use the same IP range, which causes conflicts. To solve this you can [reconfigure Docker to use a different IP range](https://support.skyformation.com/hc/en-us/articles/360009195759-How-To-Change-the-Docker-IP-address-space). A recommended range can be `172.31.248.0/21` which is rarely used by other networks.
There are no transactions going from Tap to Tab The delay job may not be running. You can start it using:
sudo -u tap RAILS_ENV=production /home/tap/production/current/bin/delayed_job start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.