Skip to content

hospitalityclub/hc-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hospitality Club 4.0 Open Source - Django

Environment Assumptions

Assuming developing in Debian/Ubuntu family Linux distribution. Required system dependencies:

  • python3 (3.6)
  • postgresql-10 (10.6)
  • node and npm

Development setup

  • Git clone
  • Create virtual environment and activate it
virtualenv -p python3 ./venv
source ./venv/bin/activate
  • Install dependencies
pip -r ./dependencies/py3.txt
  • Install node modules
cd cointelligence/node_modules
npm install
cd ../..
  • Update git submodules
git submodule update --remote --recursive --init
  • Create Postgres role (user) and database owned by the role, we recommend using PgAdmin3
  • Update hc4/settings.py DATABASES constant
  • From now we work in hc4 project directory
cd hc4
  • Run migrations
python manage.py migrate
  • Create superuser
python manage.py createsuperuser
  • Populate Cities/Regions/Countries (takes forever)
python manage.py cities_light
  • Run debug server
python manage.py runserver

It should start working on localhost:8000

Happy testing and development!

About

Hospitality Club 4.0 Open Source in Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published