Giter Site home page Giter Site logo

anaswae / smartvpn-billing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mehonoshin/smartvpn-billing

0.0 0.0 0.0 13.08 MB

Billing and auth system for VPN provider

License: MIT License

Ruby 42.87% JavaScript 2.04% CoffeeScript 0.17% CSS 45.57% HTML 9.20% Shell 0.09% Dockerfile 0.06%

smartvpn-billing's Introduction

SmartVPN Billing

Build Status Inline docs

smartvpn-billing

About

This repo contains just billing system for SmartVPN project. All further documentation in this repo relates only to billing system.

If you are looking for general documentation about the whole SmartVPN please visit Mehonoshin/smartvpn repo.

Docker image

The docker image is built automatically on every merge to master. You can always pull the latest version of the image from Docker Hub.

docker pull mexx/smartvpn-billing

For more information about the builds visit docker hub page mexx/smartvpn-billing

Contribution guidelines

TBD

Development setup

Set Up and Running app locally

  1. Clone repo git clone [email protected]:Mehonoshin/smartvpn-billing.git
  2. cd smartvpn-billing
  3. cp config/database.yml.sample config/database.yml and enter the username and password for access to your database.
  4. cp .env.sample .env
  5. The file .env contains all the env variables used in the application.
  6. bundle install
  7. rake db:setup
  8. rails server

Start Up and Developing with Docker

  1. Clone repo git clone [email protected]:Mehonoshin/smartvpn-billing.git
  2. cd smartvpn-billing
  3. docker-compose -f docker-compose.development.yml up
  4. cp .env.sample .env
  5. Edit your SECRET_TOKEN in .env
  6. Go to http://lvh.me:3000

How to run usual RoR command into docker

  1. docker-compose -f docker-compose.development.yml up
  2. docker-compose exec app bash - connect to running container as named app
  3. RAILS_ENV=test ./bin/rake db:setup - setup test database
  4. ./bin/rails console - run rails console
  5. RAILS_ENV=test bundle exec rspec spec - start rspec tests

How it works :) https://www.youtube.com/watch?v=VFRKPO5LHDg

Admin access

Other accounts created during seeding can be found at:

smartvpn-billing's People

Contributors

araslanov-e avatar depfu[bot] avatar hunk13 avatar ilyaerin avatar mehonoshin avatar nurupo avatar reabiliti avatar smartvpn avatar svishniakov avatar tat-ka avatar trddddd avatar

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.