Giter VIP home page Giter VIP logo

single-page-app's Introduction

Web application supporting creation of character for role playing game

The purpose of this application is the improvement of creating character's profile of role playing game. Implemented application is substitute of a traditional, paper solution. Existing solutions do not contain all essential functionalities such as interactive appearance creator, printing generated character's sheet and saving all of created characters in system.

To create this application it was made detailed project of application. There were described all requirements, use cases, architecture of application, data base design, package diagram and user interface prototype. The application is developed in Vue.js and Django frameworks with SQLite data base. Django REST Framework is used to create web API.

To improve application there were made unit, manual and usbaility tests.

Developed application can by used by people interested in role playing game, who are willing to use IT solutions in improvement of creating character's profiles.

Wymagania do uruchomienia projektu

  1. Zainstaluj w systemie operacyjnym Pythona w wersji 3.6, na przykład ze strony internetowej python.org
  2. Zainstaluj pipenv - program służący do zarządzania w łatwy sposób zależnościami w projekcie Pythonowym i instalujący je w osobnych środowiskach wirtualnych (czyli że pakiety z różnych projektów się nie gryzą)
$ pip install pipenv
  1. Zainstaluj zależności projektowe
$ pipenv sync
  1. Aktywuj środowisko wirtualne
pipenv shell
  1. Uruchom migracje bazy danych
$ python manage.py migrate
  1. Uruchom serwer
$ python manage.py runserver
  1. Przejdź do strony localhost:8000

Development

Dodawania nowych zależności do projektu

W tym przykładzie dodamy framework Django w wersji 2.1.2:

$ pipenv install "django==2.1.2"

Pipenv umieści Django jako zależność w pliku Pipfile oraz przypnie wersję Django oraz wszystkich jego zależności w pliku Pipfile.lock. Dodatkowo zainstaluje wszystkie pakiety w przeznaczonym dla tego projektu środowisku wirtualnym.

Zmiany w modelach

Gdy wprowadzi się zmianę w modelach, trzeba wygenerować migracje dla bazy danych. Aby to zrobić wywołaj:

$ python manage.py makemigrations

Następnie zmiany trzeba zaaplikować na bazie danych:

$ python manage.py migrate

Zmiana w obiektach w bazie danych

$ python manage.py create_objects

single-page-app's People

Contributors

nightlinx avatar

Watchers

James Cloos avatar  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.