Document management app.
git clone https://github.com/thuo/documents-app.git
Make sure the project directory your working directory if it isn't already.
cd documents-app
Install the dependencies
npm install
mongod
The environment variables used by the server are:
MONGODB_URI
NODE_ENV
PORT
SECRET_KEY
ADMIN_EMAIL
ADMIN_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.