GeneraList is a simple yet powerful todo list webapp.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Brandon 'LinuxLiaison' Nolet 6b2830751e clarify dev pre-reqs il y a 1 an
dev renamed dev.js, just because. Testing laptop setup il y a 1 an
docs Adding test data to mongodb il y a 1 an
src comments, error checking, input validation il y a 1 an
.gitignore moving files and functions, adding test-data il y a 1 an
README.md clarify dev pre-reqs il y a 1 an
package-lock.json still fleshing out main structure, documentation il y a 1 an
package.json renamed dev.js, just because. Testing laptop setup il y a 1 an

README.md

GeneraList

GeneraList is a simple yet powerful todo list server using MongoDB for persistent storage and express for routing

How to install

npm install

Usage

Production

To use GeneraList in a production environment, run the following:

npm run prod

Development

To run the server in development mode run npm run dev

Setting up your environment

Pre-reqs

In order to develop for the server you'll need the following to be installed:

  • npm/nodejs to run the server
  • MongoDB for persistent storage
  • node-dev for continuous development testing

Populating the database

Firstly make sure that MongoDB is active:

sudo systemctl status mongod

or

curl localhost:27017

Note: The latter will result in a message about accessing MongoDB over HTTP if the service is running

Next run npm run populate to populate the database. Running this will start the RESTful web server on port 3000.

To test if the database was properly populated, run npm run dev then open your web browser and navigate to the web address localhost:3000/tasks and you should get an array of 15 tasks.

You can also drop the database by running npm run drop-tables

Modifying test data

The files used to populate the database for testing are located in dev/test-data.

Mirror

This repository is mirrored in GitLab and Gitea. This is a private repository for the time being. Please email me at linuxliaison@fastmail.com for access if you wish to submit an issue there.