GeneraList is a simple yet powerful todo list webapp.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brandon 'LinuxLiaison' Nolet 5ee741b368 tests for tasks GET method. 5 months ago
dev tests for tasks GET method. 5 months ago
docs Added DELETE API endpoint. 5 months ago
src Starting automated testing 5 months ago
.gitignore moving files and functions, adding test-data 7 months ago
README.md Try and fix again? 5 months ago
package-lock.json Starting automated testing 5 months ago
package.json tests for tasks GET method. 5 months ago

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

To install the required modules, run npm install.

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

You can also drop the database by running npm run drop-tables. This will only drop the generalist table.

API

To see the RESTful API endpoints either see the RESTful API Endpoints.md

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.