Skip to content

CloudBoltSoftware/cloudbolt-training-lab

Repository files navigation

Cloudbolt Training Lab

This app is a collection of lab resources that will accompany a guide to instruct the user various parts of CloudBolt.

Pre-requsites:

postgres running locally

Developing Locally

To get the resource running locally, perform the following steps:

createdb cloudbolt_training_lab -U postgres --password 

Export the database URL to your environment variables:

export DATABASE_URL=postgres://postgres:<password>@127.0.0.1:5432/cloudbolt_training_lab

Apply migrations:

python manage.py migrate

Start the app:

python manage.py runserver 0.0.0.0:8000

Deployment

An accompanying script within the repo, when run on CENTOS8 will deploy the resource into a functional and reachable API server. Relevant files:

  • cloudbolt-training-lab/cloudbolt_training_lab/cars/scripts/create_api_resources.sh
  • cloudbolt-training-lab/cloudbolt_training_lab/cars/scripts/nginx.conf

Extending the app

This app is built using Django Cookie Cutter to make use of Django best practices and consistent documentation.

To extend this app in any manner, consult the django cookie cutter documentation: https://django-cookiecutter.readthedocs.io/en/latest/

Included apps:

Cars

This app exposes three API endpoints for creating cars.

  • Manufacturer (/cars/api/manufacturer)
  • Make (/cars/api/make)
  • Trim (/cars/api/trim)

About

A training resource to accompany lab guides built on Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published