This is the clone of google form
- clone this repo
git clone https://github.com/mukezhz/dynamicform.git
- goto dynamicform's backend
cd dynamicform/
- install poetry
pip install poetry
- install dependencies
poetry shell
poetry install
- copy the .env_sample to .env
cp .env_sample .env
-
update the .env & check the NOTE: below
-
create necessary tables
python db.py -t all
- to run the project
python app.py -p 8000
NOTE: You need to install mysql and create database before filling into .env
- install xampp
- install mysql specific to your operating system
- for unix like system install mysql server
For arch:
sudo pacman -S mariadb mariadb-clients mariadb-libs
Please use docker-compose version 1.28. or +*
- goto dynamicform
cd dynamicform/
For arch:
sudo pacman -S docker docker-compose
- add your
username
indocker
group. [So that we don't need to use sudo]
sudo usermod -aG docker <your-username>
- run docker-compose and viola: [Don't forget to check NOTE below]
docker-compose up
- use api testing tools like postman, insomnia, or curl, or browser
To check:
curl http://localhost:8000/api/users/
NOTE: DON'T FORGET TO CHANGE YOUR .env if you are using MODERN APPROACH
MYSQL_HOST=db
[because: name of my database in docker-compose
is db
or change the docker-compose.yml file]
Enjoy your day: 😋 😋 😋