|
5 months ago | |
---|---|---|
dev | 5 months ago | |
docs | 5 months ago | |
src | 5 months ago | |
.gitignore | 7 months ago | |
README.md | 5 months ago | |
package-lock.json | 5 months ago | |
package.json | 5 months ago |
GeneraList is a simple yet powerful todo list server using MongoDB for persistent storage and express for routing
npm install
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-dev
for continuous development testingFirstly 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.
To see the RESTful API endpoints either see the RESTful API Endpoints.md
The files used to populate the database for testing are located in dev/test-data.
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.