Hurray! We succeeded in creating an application which will allow the users to create a survey, retrieve a survey, update a survey, delete a survey, and cast the vote of a choice for a survey. Perform the following steps for running the server:
server.py
with the following code:import sys from survey import app, db from survey import views def main(): db.create_all() app.run(debug=True) return 0 if __name__ == '__main__': sys.exit(main())
runserver.py
script as shown in the following lines:$ python runserver.py * Running on http://127.0.0.1:5000/ * Restarting with reloader
http://127.0.0.1:5000/
.We are done!
3.16.51.157