Skip to content

ja-odur/puzzled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

Puzzled

Is a web based gaming app. The app currently can crack any 2x2 or 3x3 Sudoku puzzles.

coming soon - poker

The app is built with Python/Django/Graphene for its backend, Node/Typescript/React/Apollo for its frontend

Prerequisites

Cloning

  • After installing the prerequisites above, clone the repository Develop branch using this command git clone -b develop https://github.com/ja-odur/puzzled.git
  • Change into the newly cloned repo through cd puzzled

Docker Installation

Key docker environment variables

After the setting up the .env file following the .env_sample. ensure to have the following keys with the following docker image values;

DATABASE_URI

  • $postgresql://docker:docker@db:5432/puzzled

REDIS_URL

  • $redis://redis:6379/0

Starting the development application

Build the docker images using

  • $ docker-compose build

Starting the development application

  • $ docker-compose up

Manual Installation

Installing virtual environment and installing dependencies

Using pipenv, start the environment and install requirements

  • $ pipenv shell

Install the invoke library

  • $ pip install invoke

Using invoke, install both Python and Node dependencies using

  • $ inv install-requirements

Set-up Node path

  • $ source ./bin/functions/set_node_path.sh && setNodePath

Setting up environment variables

  • create a .env file in the root directory and add the environment variables key defined in the .env_sample file with their corresponding values.

Starting the application

Run webpack build

  • $ inv build-local

Start the Django server

Local development

Enabling hot-reloading using webpack-dev-server, run the following command in a separate terminal

  • $ inv webpack-server

Checking for JS and Python Linting respectively

  • $ inv lint-js
  • $ inv lint-py

Auto-fixing JS and Python linting respectively

  • $ inv prettier-js
  • $ inv prettier-py

Running Python tests

  • $ inv test-py

Starting redis and django-q servers

Run the following commands in separate terminals

Starting redis

  • $ redis-server

Starting django-q cluster

  • $ python manage.py qcluster

Author

Odur Joseph

About

A web-based gaming app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy