A django project to build custom API and use with react hook forms to validate custom forms
Table of Contents
This project is an API demo built to make http requests and return custom responses to use them with the project React Hook Forms Demo
This project was build it with:
- Python version 3 (recommended 3.8 or less) in your path. It will install automatically pip as well.
- A virtual environment, namely .venv.
Execute the next command at the root of the project:
python -m venv .venv
Activate the environment
Windows:
.venv\Scripts\activate.bat
In Unix based operative systems:
source .venv/bin/activate
The dependencies are defined in requirements.txt.
Execute the next command once you have created the venv:
pip install -r requirements.txt
To start the server, you need locate in the next path:
cd my_awesome_django_project
Before starting the server you need to add a secret key in settings.py, to generate a secret key you can run:
./manage.py djecrety
This library generates a secret key, you just need to copy the output and
replace the text Insert your key here
Finally, you should run:
python manage.py runserve
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Bryan Arellano - ridouku@gmail.com