Event registration is a web app for management registering for events.
The app is build with
- Python 3.8
- React
- Mysql 8.0
- Create python virtual environment and activate it
- Install
requirement.txt
- Install
mysql-server 8.0
and run it - Create a user in
mysql server
and execute the script atdbmodel/db_file.sql
- Update the mysql connection configuration in
.env
- Update media folder path in the
.env
- Go to
client
folder- run
npm install
- run
npm build
- run
- Run either
startserver.py
orrunflask.sh
, flask server will run atlocalhost:8888
http://localhost:8888
will show you a default react app pagehttp://localhost:8888/event/api
is the base url for Restful APIsGET http://localhost:8888/event/api/registration
will lise the registrationGET http://localhost:8888/event/api/registration/<reg_id>
will get data of a single registrationPOST http://localhost:8888/event/api/registration
will create a registration- Content-Type :
multipart/form-data
- Form Fields:
- full_name
- id_card - id_card image file
- mobile_number
- email_address
- registration_type - Allowed values [SELF, GROUP, CORPORATE, OTHERS]
- no_of_ticket
- Content-Type :