Document management app.
git clone https://github.com/andela-hthuo/documents-app.gitMake sure the project directory your working directory if it isn't already.
cd documents-appInstall the dependencies
npm installmongodThe environment variables used by the server are:
MONGODB_URINODE_ENVPORTSECRET_KEYADMIN_EMAILADMIN_PASSWORD
NOTE: All these variables have defaults but it's highly recommended to set your own SECRET_KEY and ADMIN_PASSWORD because these should not be public while their defaults have been checked into source control.
Start the development server.
npm run start-dev
Alternatively, start the production server.
npm start
NOTE: Make sure the project directory your working directory before starting the server.
Open http://http://localhost:3000. You can run the app in a different port by setting the PORT environment variable.
NOTE: A default admin user is created with the email in ADMIN_EMAIL and the password ADMIN_PASSWORD environment variables.