- About The Project
- Prerequisites.
- Installation
- Database design.
- Author
- Acknowledgments
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.
The purpose of this project was to present the technical test for the candidacy of django backend developer in the company CHAPP Solutions.
- Python
- Django
- Tailwindcss
- Javascript
- install Python.
- install Pip.
- VENV
This installation guide is based on the Ubuntu operating system.
- We start by creating a new folder, in my case I will call it project.
- 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
- we proceed to clone the repository in Github.
git clone https://github.com/codigoenlaweb/lions_hotel.git
- We enter the virtual environment venv.
source venv/bin/activate
- We install the requirements in the virtual environment venv.
pip install -r lions_hotel/requirements/local.txt
- 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
- 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
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.
this project already has everything configured to be able to work with tailwind so it will be short.
-
Inside the lions hotel folder go to jstools.
cd jstools/
-
npm install.
npm install
-
npm run tailwind to work locally and npm run build before uploading to production.
- Local
npm run tailwind
- Production
npm run build
- Local
Ready you have completed all the installation congratulations :)
Jesus Olmos - Linkedin - [email protected]
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.