Giter Site home page Giter Site logo

mnunezdm / cazasteroides Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 31.99 MB

Reputation System implemented using Flask

License: MIT License

Shell 6.73% Python 93.27%
flask-application flask flask-sqlalchemy flask-server flask-backend gamification karma asteroids

cazasteroides's Introduction

Karma Server

TODO

Instalación

Prerrequisitos

Sera necesario tener Python3 instalado. No se asegura el correcto funcionamiento sobre Python2. Para la instalar se puede realizar directamente desde la página web de Python

Además, será necesario tener instalado pip para descargar todos los módulos necesarios, este paquete se instala por defecto al instalar cualquier versión de Python por encima de 2.7.8 y por encima de 3.3 (no inclusive).

Por último, es recomendable utilizar virtualenv para evitar que módulos no necesarios interfieran.

Instalación

Habrá que descargarse la última versión del servidor desde este repositorio Git, para ello lo podemos hacer utilizando el siguiente mandato.

git clone https://github.com/mnunezdm/cazasteroides.git

Con esto activado habrá que navegar hasta la carpeta donde está el servidor, esta es:

cd cazasteroides/código/karma-server

Ahora, si se quiere utilizar un virtualenv habrá que inicializarlo y activarlo.

virtualenv .
Scripts/activate

Ahora, habrá que instalar todos los módulos necesarios, para ello, simplemente lanzaremos el mandato

pip install -r requirements.txt

Por último, tendremos que inicializar la base de datos.

Para ello, dentro de la carpeta src, lanzaremos los tres siguientes mandatos.

python manage.py db init
python manage.py db migrate
python manage.py db upgrade

Con esto ya tendremos nuestro sistema preparado para poder ejecutar el servidor.

Probar Servidor

Se ha preparado una batería de test para probar todos los módulos de este servidor, para ello, tendremos que lanzar el siguiente mandato:

python manage.py runtests

cazasteroides's People

Contributors

mnunezdm avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

cazasteroides's Issues

Improve Formula Validator to detect a valid formulas also for level range

Formulas should also be validated so that all the valid levels can be calculated

For example, if we have this formula 1 / ( level - 10 ) with max_level = 10, a ZeroDivisionError Exception is going to be raised when level is 10

But, with that same formula, for a max_level 5, the Exception would not be raised

Implement different policies in level provider

Implement different policies, for example, one for votations, and other for observations,

Return a Karma Object with all the information??

Maybe give the possibility to configure more??

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.