|Brandon 'LinuxLiaison' Nolet 6b2830751e||1年前|
GeneraList is a simple yet powerful todo list server using MongoDB for persistent storage and express for routing
To use GeneraList in a production environment, run the following:
npm run prod
To run the server in development mode run
npm run dev
In order to develop for the server you'll need the following to be installed:
node-devfor continuous development testing
Firstly make sure that MongoDB is active:
sudo systemctl status mongod
Note: The latter will result in a message about accessing MongoDB over HTTP if the service is running
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
The files used to populate the database for testing are located in dev/test-data.