Giter Site home page Giter Site logo

ico-drf-token's Introduction

ICO Token Application

Allows people to make bids, so far its within the bidding window.

At the end of a bidding window, it automatically distributes the bids according to rules below

  1. Distributes to people with the larger bids first
  2. When multiple people are in the same price group, gives them one first

At the end of the bid distribution, two tables would be created - for the successful bids and the unsuccessful bids.

An external API is available for prepopulating the bid window, though can only be done by an Admin user.

Steps to Reproducing on Heroku

  1. Create a heroku app heroku create and it would output the name of our app, in my own case afternoon-scrubland-88520

  2. Add the SECRET_KEY environment variable

heroku config:set SECRET_KEY=SOME_SECRET_VALUE -a afternoon-scrubland-88520

There are many ways to deploy on heroku, but i will be going with the build manifest method.

  1. Set the Stack of your app to container:
heroku stack:set container -a afternoon-scrubland-88520
  1. Install the heroku-manifest plugin from the beta CLI channel
heroku update beta
heroku plugins:install @heroku-cli/plugin-manifest
  1. Add the Heroku remote from your initialised repo
heroku git:remote -a afternoon-scrubland-88520
  1. Push the code up to Heroku to build the image and run the container:
git push heroku HEAD:master

Postgres

  1. Create the database
heroku addons:create heroku-postgresql:dev -a afternoon-scrubland-88520
  1. Once the database is up, run the migrations
heroku run python manage.py makemigrations -a afternoon-scrubland-88520
heroku run python manage.py migrate -a afternoon-scrubland-88520
  1. Populate the database too
heroku run python manage.py populate_site -a afternoon-scrubland-88520

ico-drf-token's People

Contributors

harryface avatar

Watchers

 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.