Coder Social home page Coder Social logo

django-boatrent's Introduction

App description

django-boatrent v0.1 alpha

This is a simple boat rental service application that allows to rent a boat for a day or a longer period of time.

Everyone can make a booking, but only admin is able to modify and delete bookings.

Screenshots

Anonymous user is able to browse the website and create booking

Create new order

Booking confirmation

When new booking is created system verifies that there are no overlappings and provides a summary with calculated price.

Booking summary

Logged in user is able to list bookings and modify them

Booking list

Note that modify view is different compared to create new booking view, admin is able to see and modify "price" field as well.

Modify booking

Admin can also modify any field in the booking and delete the booking completely.

Delete booking

URL of Admin panel

Admin panel URL has been modified slightly from default.

https://yoursite.com/adm-boatski/

Delete booking

TODO

This is an MVP alpha version, a lot of functionality needs to be added, such as:

  • Implement HTTPS (certbot)
  • UI improvements (adding boat pictures, dock location, etc)
  • Add detailed instructions and boat descriptions
  • Update RentalPrices from JSON
  • Add checks and validations
  • Notification e-mails (Mailgun)

Deployment process

This was deployed on a Debian 11 server.

Please refer to a guide by Tero Karvinen for detailed explanation of the deployment process.

Make sure to run the app within the virtual environment

First you need to create a new virtualenv and install django

virtualenv --system-site-packages -p python3 env/

--system-site-package uses the packages installed by apt-get whenever possible.

If you don't have a virtualenv installed, you need to install one. On Ubuntu or Debian Linux, you can do it with apt-get

apt-get -y install virtualenv

Start your virtual env

source env/bin/activate

To stop virtualenv

deactivate

References

https://terokarvinen.com/2023/django-cheatsheet/

https://terokarvinen.com/2022/deploy-django/

django-boatrent's People

Contributors

evgeni-semenov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.