This is the frontend for a system that manages documents, users and roles.
Each document defines access rights i.e. which roles can access it and the date it was published.
Users are categorized by roles. Each user must have a role defined for them.
- Clone the backend repo first and follow the instructions in the README to get it up and running:
git clone https://github.com/kevgathuku/docue-
Clone the frontend repo locally and navigate to the newly created folder
git clone https://github.com/kevgathuku/docue-frontend cd docue-frontend -
Install the app dependencies
npm install
-
Copy the
.env.examplefile to.envcp .env.example .env
-
Replace the values in the
.envfile with the appropriate values -NODE_ENV- The environment you are running the code in i.edevelopment,testorproductionThe default value ofdevelopmentis fine and should work for most cases -
Start the project by running
npm start
It can be accessed on
http://localhost:3000
To run the tests, use the following command:
npm test