Skip to main content
Engineering LibreTexts

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

  • Page ID
    27579
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    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 is shared under a CC BY license and was authored, remixed, and/or curated by Charles W. Kann III.

    • Was this article helpful?