Skip to content

Google form like application with relational database (Mysql)

Notifications You must be signed in to change notification settings

mukezhz/dynamicform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Form App

This is the clone of google form

  1. clone this repo
git clone https://github.com/mukezhz/dynamicform.git

TO EXECUTE THIS APP: PRIMITIVE APPROACH

  1. goto dynamicform's backend
cd dynamicform/
  1. install poetry
pip install poetry
  1. install dependencies
poetry shell
poetry install
  1. copy the .env_sample to .env
cp .env_sample .env
  1. update the .env & check the NOTE: below

  2. create necessary tables

python db.py -t all
  1. to run the project
python app.py -p 8000

NOTE: You need to install mysql and create database before filling into .env

Ways to install mysql:

  1. install xampp
  2. install mysql specific to your operating system
  3. for unix like system install mysql server

For arch:

sudo pacman -S mariadb mariadb-clients mariadb-libs

TO EXECUTE THIS APP: MODERN APPROACH

[checked only on docker-compose verion 1.28.* and 2.3.*]

Please use docker-compose version 1.28. or +*


No need to install database managent software in your machine

  1. goto dynamicform
cd dynamicform/
  1. Install docker
  2. Install docker-compose

For arch:

sudo pacman -S docker docker-compose
  1. add your username in docker group. [So that we don't need to use sudo]
sudo usermod -aG docker <your-username>
  1. run docker-compose and viola: [Don't forget to check NOTE below]
docker-compose up

  1. 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: 😋 😋 😋

About

Google form like application with relational database (Mysql)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published