This service aims to resolve document management by storing documents with pre-defined Document Types.
The Repository contains 2 directory :
- Back End - Support Repository (document-mgmt-api)
- Front End - Support Repository (document-mgmt-vue-app)
document-mgmt-api microservice task is to provider server support for the Document Management App
document-mgmt-vue-app will be support Front End operations.
- The service will only use local database, please make sure to update the credentials in
dbConfig.js
with the local database server of the current machine. - In order to get records for testing data, make sure to run sql script - document-db.sql which is part of microservice and ensure that database is connected.
- Since we are running this application locally, we will need to connect local db server with the application.
- Once connected - Start the BE microservice using command
npm start
in termnial. - Once BE server has started successfully, Front End can be started by running
npm start
ornpm run serve
In order to verify sql connection and microservice running successfully, please fire below request in postman. If the request is successful you will be getting documents
and document types
in response.
GET http://localhost:8090/api/documents/
Once both the microservice and vue app is running successfully you should be good to go.
Clone the project
git clone https://github.com/spatel2693/document-mgmt-api.git
git clone https://github.com/spatel2693/document-mgmt-vue-app.git
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm start