Skip to content

ariunbayar/hexic

Repository files navigation

Getting started

  1. Run following to have your local settings:

    cp local_settings.py.def local_settings.py
    
  2. Have your database configuration set up in local_settings.py

  3. Create a database in your mysql server with following SQL:

    CREATE DATABASE hexic CHARACTER SET utf8;
    
  4. Run following to create tables in your database. Make sure you don't create admin user:

    python manage.py syncdb
    

    It will create inital data in initial_data.json

  5. Run the server with:

    python manage.py runserver
    
  6. You can now access https://localhost:8000

  7. Also you can access admin page https://localhost:8000/admin

Extra commands

  • To run tests:

    python manage.py test -v 2 api game public security admin
    

    -v 2 is the verbosity level. Allowed values are 0=minimal output, 1=normal output, 2=all output

  • To run specific tests:

    python manage.py test api.APITest.test_new_msj
    
  • To create new account by SMS:

    wget -O - 'https://localhost:8000/api/?phone=%2B976596&msg=(Tand%2099437911%20dugaaraas%20100%20negj%20ilgeelee)'
    

South commands

  • For first migration:

    ./manage.py schemamigration app_name --initial
    
  • Incremental:

    ./manage.py schemamigration app_name --auto
    
  • To apply this migration:

    ./manage.py migrate app_name
    

Coffee Scripts

  • To rebuild/watch js files:

    ./manage.py jsbuild
    ./manage.py jswatch
    

    Make sure you have installed [coffeescript](https://coffeescript.org/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published