Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building web applications with Python and Neo4j
  • Table Of Contents Toc
  • Feedback & Rating feedback
Building web applications with Python and Neo4j

Building web applications with Python and Neo4j

By : Sumit Gupta
4.3 (3)
close
close
Building web applications with Python and Neo4j

Building web applications with Python and Neo4j

4.3 (3)
By: Sumit Gupta

Overview of this book

If you are a Python developer and want to expand your understanding of Python-based web applications over Neo4j graph data models, this is the book for you.
Table of Contents (9 chapters)
close
close
8
Index

Setting up web applications with Flask and Flask-RESTful

In this section, we will talk about the basics of developing web applications using Flask and Flask-RESTful.

Your first Flask application

As we discussed earlier, Flask is simple and straightforward. There are no complex rules or steps for developing web applications in Flask.

Perform the following steps to create your first web application using Flask:

  1. Create a module and name it FlaskWebApp.py.
  2. Edit FlaskWebApp.py and add the following code:
    from flask import Flask
    webapp = Flask(__name__)
    
    @webapp.route("/")
    def hello():
        return " Hello World!"
    
    if __name__ == '__main__':
        webapp.run(host='0.0.0.0',port=8999,debug=True)
  3. Next, open your console or command prompt and execute py FlaskWebApp.py. You will see something like the next screenshot:
    Your first Flask application

And we are done!!!

Your first application is up and running on port 8999.

Next, you can open your web browser and type http://localhost:8999 in the URL navigation...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building web applications with Python and Neo4j
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon