/python-game

Simple python game development using Python PyQt, REST, MongoDB

Primary LanguagePython

python-game

Simple python game development using Python PyQt, REST, MongoDB

Install PyQt4(On Ubuntu)

* apt-cache search pyqt (search for PyQt4 or PyQt5)
* Sudo apt-get install python-qt4

Install mongodb(On Ubuntu)

* Sudo apt install mongodb

Install pymango(On Ubuntu)

* sudo apt install python-pip
* sudo python -m pip install pymongo

Start MongoDB (need to support REST and http interface)

* sudo mongod --rest --httpinterface

How to check the database in browser (http)

* http://localhost:28017/dbname/collection-name/ 
* http://localhost:28017/testdb/highest_score/  ('/' is important)

To run the game, type the following command

* python canvasMain.py

Screen shot

alt text