Socket
Book a DemoInstallSign in
Socket

@coserv/todoexp

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coserv/todoexp

An example coServ web app which can show a TODO list.

0.1.7
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

This TODO list sample application is to showcase how easy a web app can be built using the coServ web server. You can show a TODO list, and click on any one of them to see the details. You can even modify a TODO item.

Get started

You can clone the project from github:

git clone https://github.com/coserv/todoExp.git

Once done, it will create a "todoExp" directory in the current directory. This project has already embedded a coServ server, so you can simply cd to the "todoExp" directory and type the following command to start the web application:

npm start

Point your browser to http://127.0.0.1:8080/todo/list to see it work.

Explaining the code

You can go the the www/todoExp/assets/themes/default/palets/todo directory to look for the major source files:

  • list.xs: This is the main file. It will load the todo list and display it. It also listens to the click event on any TODO item and invokes a dialog to show the details info of the selected item. If users modify a TODO item, this palet will call /todo/updateItem to save the update.

  • view.xs: This palet will display the detailed information of a TODO item.

  • updateItem.xs: This is a "faceless" palet. That is it will not render any view for display. Instead, it accepts input and use the input data to update a TODO item.

Besides the three palets mentioned above, you may also want to check the www/todoExp/lib/TodoModel.js file. That is a node.js module which works as the data model for this example app.

Keywords

coServ

FAQs

Package last updated on 10 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.