Skip to content

anshd258/docker-backend

Repository files navigation

Basic Requirements

STEPS OF INSTALLATION

-Clone the repo: git clone https://github.com/brisphere/django-backend.git

-Change the current directory: cd django-backend

For Development:

-Build the docker containers:docker-compose build

-Run the docker containers: docker-compose up

For Production:

  • Build the container: docker build . -t django-backend -f docker/Dockerfile.prod
  • Run the container: docker run -e DJANGO_ENV=deployment django-backend

URLS

  • localhost:8000/admin/
  • localhost:8000/cabin/get-room-availability/?id=<cabin_location.id>&rooms=<number_of_rooms_required>&checkin=<checkin_date>&checkout=<checkout_date>
  • localhost:8000/cabin/payment-status/?id=<paymentStatus.id>
  • localhost:8000/cabin/get-booking/?id=<user.id>
  • localhost:8000/cabin/create-booking/
  • localhost:8000/cabin/post-testing/
  • localhost:8000/package/create-package/?id=&guests=&preferences=<a_string_containing_coma_separated_ids_of_package_preferences>
One example of create-package url is

NOTE: All date formats in "YYYY-MM-DD"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •