Assignment Problem Statement:
A food delivery company wants to self onboard the restaurants. Design a system that collects basic merchant details (restaurant name, contact name, Pincode, location, website, phone number, average daily transactions). Use API to connect frontend and database servers. You can either use SQL or NoSQL databases. Users should be able to submit the form and if successfully submitted, see the status, failure status otherwise
To get up and running, simply do the following:
$ git clone [email protected]:shubham2637/vymo.git
$ cd vymo
# Install the requirements
$ pip install -r requirements.txt
# Perform database migrations if required
$ python manage.py makemigrations
$ python manage.py migrate
# Start the server
$ python manage.py runserver
Open bowser at http:https://127.0.0.1:8000
Admin Login : http:https://127.0.0.1:8000/admin
username : admin
password : admin
#for Rest APIs
method URL Discription
GET http:https://127.0.0.1:8000/api/merchant : Lists all merchant
POST http:https://127.0.0.1:8000/api/merchant : Adds merchant
GET,DELETE,PUT http:https://127.0.0.1:8000/api/merchant/<pk> : CRUD on merchant id
NOTE: I highly recommend creating a Virtual Environment. Python Virtual Environments allow developers to work in isolated sandboxes and to create separation between python packages installed via pip.