_____ _ __ __ _ _
/ ____| | / _|/ _| | | | |
| (___ | | ____ _| |_| |_ ___ | | __| | ___ _ __
\___ \| |/ / _` | _| _/ _ \| |/ _` |/ _ \ '__|
____) | < (_| | | | || (_) | | (_| | __/ |
|_____/|_|\_\__,_|_| |_| \___/|_|\__,_|\___|_|
_ _ _ _ _____
| \ | | | | | |/ ____|
| \| | ___ __| | ___ | | (___
| . ` |/ _ \ / _` |/ _ \_ | |\___ \
| |\ | (_) | (_| | __/ |__| |____) |
|_| \_|\___/ \__,_|\___|\____/|_____/
This project was generated by Skaffolder
! IMPORTANT
- Register an account https://account.factom.com an get your appId and appKey
- Insert your appId and appKey in
properties.js
To launch the application start a local instance of MongoDB, open a terminal in this folder and type:
$ npm install
$ npm startGo to http://localhost:3000
Set database credentials in properties.js
- The model who have "Factomize" checkbox selected, is required to have a relation (FK) with the model who have the identity
- The model who have "Identity" checkbox selected, needs to have "identity" column required.
- If you just wan't to use the factom methods, just remove the services on the controllers.
- All the Factom methods are located in the services folder.
- Factom credential data are located in the properties.js file.
- Patient model have an example of a model who have factomize checkbox selected.
- Docor model have an example of a model who have identity checkbox selected.
-
To start the application with Docker:
-
Install Docker
-
Run command:
docker-compose up
- Go to http://localhost:80
-
-
When code changes you need to rebuild container running:
docker-compose up --buildWith Skaffolder-CLI you can easily manage your Skaffolder project from command line and customize your generator template from your IDE.
Install Skaffolder-CLI with
$ npm install -g skaffolder-cliLogin running the command
$ sk loginGenerate your project with the command
$ sk generateYou can customize your generator template working with files in .skaffolder folder in your project root.
Please refer to https://skaffolder.com/#/documentation/skaffolder-cli for more information.