daniel0076 / Shogi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shogi Web

Play Shogi on web.

Environment

  • Frontend: Angular8
  • Backend: Django Rest

Development

Prerequisites

Make sure the prerequisites are installed

  • python3.7 or newer
  • pipenv
  • yarn
  • npm
  • ng-cli

Backend

install requirements

> pipenv install    # install python dependency
> pipenv run pip install channels # install channels from source
> pipenv shell  # activate virtual environment

Initiate Database

> cd Shogi
> python3 manage.py makemigrations Shogi_app
> python3 manage.py migrate

db.sqlite3 should appear in the directory

Run backend server

python3 manage.py runserver [ip:port]

Frontend

Install dependency

> cd ShogiUI
> yarn # or npm install
> npm install -g @angular/cli   # install ng cli tool

Run server

> ng serve
# listen on http://localhost:4200/

About


Languages

Language:Python 69.3%Language:TypeScript 25.5%Language:HTML 3.7%Language:JavaScript 0.8%Language:CSS 0.7%