GithubHelp home page GithubHelp logo

codigoenlaweb / lions_hotel Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 212 KB

app in django to make reservations in a hotel and in a selected date range. You will also have different types of rooms and confirmation of said room through a verification code sent by email

Home Page: https://lionshotel.herokuapp.com/

Shell 0.30% Python 48.22% JavaScript 1.13% CSS 26.29% HTML 24.06%

lions_hotel's Introduction

Lions Hotels.

View project

Hotel reservation website

Table of Contents:

  • About The Project
  • Prerequisites.
  • Installation
  • Database design.
  • Author
  • Acknowledgments

About The Project.

Description

Web application with Django, with which you can make a reservation in a hotel with a selected date range and with the possibility of choosing between different types of rooms, in addition to confirming the room through a verification code sent by email from asynchronously so as not to affect the performance of the server, and said code has an expiration time of 10 minutes, finally, when confirming a room, another new email will be sent to the user with a unique alphanumeric code where you can see your reservation with all the data of it.

Purpose of this project.

The purpose of this project was to present the technical test for the candidacy of django backend developer in the company CHAPP Solutions.

built with.

  • Python
  • Django
  • Tailwindcss
  • Javascript

Prerequisites.

  1. install Python.
  2. install Pip.
  3. VENV

Installation.

This installation guide is based on the Ubuntu operating system.

  1. We start by creating a new folder, in my case I will call it project.
  2. We open the terminal in the project folder to be able to create our virtual environment, in my case I will call it venv.
    python3 -m venv venv
  3. we proceed to clone the repository in Github.
    git clone https://github.com/codigoenlaweb/lions_hotel.git
  4. We enter the virtual environment venv.
    source venv/bin/activate
  5. We install the requirements in the virtual environment venv.
    pip install -r lions_hotel/requirements/local.txt
  6. This project uses django-environ, within the application you will find the .env.example file, for practical reasons almost everything is filled in so that you only copy and paste in the .env file that They will be created in the root of the lions_hotel file at the same level as the manage.py (this is not a good practice since everyone should have their own environment variables following the .env model. example is only for practical purposes), it would only be necessary to add the SECRET_KEY that can be generated on this page. secret key generator
  7. We proceed to verify the result.
    python3 manage.py runserver

You have assembled your project in django and you can now test it as much as you want


Do you want to change the styles to the page and add some new ones?

For this you should know that this project works with tailwindcss one of the most popular css frameworks and in particular my favorite since it has no limits when it comes to customizing it and giving it your special touch.

Below is the tailwind installation guide.

this project already has everything configured to be able to work with tailwind so it will be short.

  1. Inside the lions hotel folder go to jstools.

    cd jstools/
  2. npm install.

    npm install
  3. npm run tailwind to work locally and npm run build before uploading to production.

    • Local
      npm run tailwind
    • Production
      npm run build

Ready you have completed all the installation congratulations :)

Database design.

relational diagram

Author.

Jesus Olmos - Linkedin - [email protected]

Acknowledgments.

Thank you CHAPP Solutions for giving me the opportunity to do this great technical test, which like everything and each one of the things I do, I put my heart, my signature, my personal touch and all the effort to reach the goal.

I hope that this application expresses a part of me and my love for my career, I have enjoyed doing it, I have learned and it has been another challenge in my path as a programmer.

lions_hotel's People

Contributors

codigoenlaweb avatar

Stargazers

 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.