Giter Site home page Giter Site logo

lae / simplemona-old Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simplecrypto/simplecoin

0.0 2.0 2.0 6.75 MB

Old repo - please use the non-forked simplemona at

Home Page: http://github.com/liliff/simplemona

License: MIT License

CoffeeScript 0.23% Python 25.66% CSS 4.04% JavaScript 70.06% Shell 0.01%

simplemona-old's Introduction

Simple Mona

This repo is the source code for the http://simplemona.com in its entirety. This includes all Celery tasks for handling the PowerPool stratum mining servers output.

Getting Started

Simple Mona makes use of PostgreSQL and Redis, as well as RabbitMQ if you'll be running a test powerpool instance for end to end testing. Setup is designed to run on Debian Wheezy. If you're doing development you'll also want to install Node since Grunt is used.

# install dotdeb repo
echo -e 'deb http://packages.dotdeb.org wheezy all\ndeb-src http://packages.dotdeb.org wheezy all' > /etc/apt/sources.list.d/dotdeb.list
wget http://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
# rabbitmq repo
echo 'deb http://www.rabbitmq.com/debian/ testing main' > /etc/apt/sources.list.d/rabbitmq.list
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
# and wheezy-backports if you have not already
echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
# then update and install services
sudo apt-get update
sudo apt-get install redis-server postgresql-contrib-9.1 postgresql-9.1 postgresql-server-dev-9.1 rabbitmq-server nodejs nodejs-legacy
# install npm
sudo curl --insecure https://www.npmjs.org/install.sh | bash

Now you'll want to setup a Python virtual enviroment to run the application in. This isn't stricly necessary, but not using virtualenv can cause all kinds of headache, so it's highly recommended. You'll want to setup virtualenvwrapper to make this easier.

# make a new virtual enviroment for simplemona
mkvirtualenv sm
# clone the source code repo
git clone https://github.com/liliff/simplemona.git
cd simplemona
pip install -e .
# install all python dependencies
pip install -r requirements.txt
pip install -r dev-requirements.txt
# install nodejs dependencies for grunt
sudo npm install -g grunt-cli  # setup grunt binary globally
npm install  # setup all the grunt libs local to the project

Initialize an empty PostgreSQL database for simplemona.

# creates a new user with password testing, creates the database, enabled
# contrib extensions
./util/reset_db.sh
# creates the database schema for simplemona
python manage.py init_db

Now everything should be ready for running the server. This project uses Grunt in development to watch for file changes and reload the server.

grunt watch

This should successfully start the development server if all is well. If not, taking a look at the webserver log can help a lot. Usually I have this running in a separate console.

tail -f webserver.log

Contributing

If you are looking to contribute back to the original project, please fork the original project at simplecrypto/simplecoin.

You should only send pull requests to this project if they are meant for simplemona.com and not for the simplecoin project in general. I will also be merging upstream changes on a regular basis, so you can expect your changes to be reflected back to this repo if accepted upstream. Feel free, however, to send a pull request here if it is rejected upstream, and I'll consider it.

simplemona-old's People

Contributors

icook avatar ericecook avatar raid5 avatar

Watchers

 avatar Ryota Uno avatar

Forkers

helsaba palon7

simplemona-old's Issues

Donation percentages below 1

There seems to be an issue with setting the donation percentages below 1, e.g. 0.1. The user stats page will read "Currently donating 0%" and the donation percentages for each block found will read 0.0.

Can't change donation percentage in Japanese locale

When I try to change donation percentage in Japanese locale, Message to be signed box:

SETFEE 2.5252   1396627670  Only valid on Simple Mona for Sat Apr 05 2014 01:07:49 GMT+0900 (東京 (標準時))

and I sign this message and enter signature, but I got "An error occurred: 'ascii' codec can't encode characters in position 90-91: ordinal not in range(128)" error message.

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.