7: Creating a Server for the Persistent Storage of Our CRUD Application

Programming for the Web - From Soup to Nuts - Implementing a Complete GIS Web Page · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    7: Creating a Server for the Persistent Storage of Our CRUD Application

    Learning Objectives

    1. The basic function of the Node.js server environment, the npm package manager, and the Sails framework.
    2. Installing and accessing Node.js and Sails
    3. Creating an application with a REST Interface for the CRUD program developed in the last chapter.
    4. What a REST interface is, and how to access it.
    5. Accessing the REST interface from Postman
    6. Accessing the REST interface form the CRUD program using AJAX to persist the data on server

    In Chapter 6 a fully working, simple CRUD application was built on the information presented in the first 5 chapters. The biggest problem with the application from Chapter 6 is that the data was persisted on the local computer using the LocalStorage. This means that the application can be used by only one user on one computer.

    In this chapter the CRUD application from Chapter 6 is changed so that it can be accessed from remote client browser environments. This will allow multiple users to have shared access to the data.


    This page titled 7: Creating a Server for the Persistent Storage of Our CRUD Application was last modified on Tue, 01 Dec 2020 03:47:55 GMT and is shared under a CC BY license and was authored, remixed, and/or curated by Charles W. Kann (The Cupola: Scholarship at Gettysburg College) .