Giter VIP home page Giter VIP logo

aetherguild2's Introduction

aetherguild2

Website project for https://aetherguild.net -- python3 required!

1. Installation

  1. Copy aetherguild/config.py-dist to aetherguild/config.py
  2. Edit the newly created aetherguild/config.py. Make sure you have RabbitMQ vhost & mysql database set up.
  3. pip install --upgrade -r requirements.txt
  4. alembic upgrade head
  5. Start by running python -m aetherguild.listener_service.main and python -m aetherguild.socket_service.main.

2. Test data & management

It is possible to generate test data to the database automatically. Use command python -m aetherguild.datagen.

There are also tools for managing forums:

  • python -m aetherguild.manage_forum_boards for board management
  • python -m aetherguild.manage_forum_sections for section management
  • python -m aetherguild.manage_users for user management

3. License

MIT. Please see LICENSE for details.

aetherguild2's People

Contributors

katajakasa avatar teistiz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

aetherguild2's Issues

Errors as list

Error messages should be sent as a list of all errors. Eg.

{
    'route': 'auth.authenticate',
    'receipt': <variable Receipt ID>, // Receipt ID, if one was supplied on request
    'error': true,
    'data': {
        'error_code': <int Error code>,
        'error_messages': {
            {'error_field': <str fieldname, optional>, 'error_message': <str Error message, mandatory>},
            { ... },
         }
    }
}

error_message should contain the error message. If error_field is set, this error will be field specific. If not, it is a generic operation error.

Sort out endpoint names

Operations should be namespaced. Eg. auth.get_profile and auth.update_profile to auth.profile.get and auth.profile.update.

Separate validation for data creation functions

We should have two endpoints for each data update/create function. Eg, auth.register.validate and auth.register.apply. First one only validates input and outputs errors if necessary, the second one does validation and data saving to database if success. This allows on-the-fly data validation when user is inputting data to forms.

"forum.get_board" endpoint

The forum front-end could use a way to fetch a single board by id and get both board information and users/threads (like what the 'forum.get_threads' route already does).

Without something like this, the forum needs to fetch all boards and then store them somewhere for single-board thread listing views. This doesn't fit into the application's structure very well when the board is used as a top-level React Router view component.

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.