Skip to content

Goujer/kanojo_server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kanojo server

Barcode Kanojo server.

Requirements:

  • Python 3
  • MongoDB

Setup

Basic Install

  • Install python requirements from "requirements.txt"
python(3) -m pip -r requirements.txt
  • Copy "config.py.template" to "config.py" and fill app parameters.

Usage

  • Now you can run server by: python(3) web_job.py
  • Note: It is possible to install under Apache2 as well.

VENV

  • Install virtualenv

    • Recommended to be setup under ./venv/ directory.
    • Can also be installed from pip.
  • Install python requirements from "requirements.txt"

  • Copy "config.py.template" to "config.py" and fill app parameters.

Usage

Now you can run server by: python web_job.py

Docker

If you prefer to run in docker, you can run it with:

docker run -it -d \
	-e PORT_VAL=5000 \
	-e HTTPS=False \
	-e MONGO_USERNAME=example \
	-e MONGO_PASSWORD=example \
	-e MONGO_HOST=example \
	-e MONGO_PORT=example \
	--name barcodekanojo \
	wegotshrimp/barcodekanojo 

You will need to provide the information for the connection to the MongoDB server. If you wish to run the DB as a docker container, see Docker/docker_compose.yml for an example on how to do this with docker-compose. See https://hub.docker.com/r/wegotshrimp/barcodekanojo for more info on the environment variables you can set to control configuration.

Licensing

Kanojo_server is licensed under MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 57.0%
  • HTML 19.7%
  • JavaScript 17.7%
  • CSS 4.9%
  • Shell 0.5%
  • Dockerfile 0.1%
  • Procfile 0.1%