@sanodoc-clinics/widget v1.1.7
Widget for Sanodoc
Importing the entry point of this widget on the client webpage is created the structure to inject the contents from this widget.
To inject, add this script:
<script src="https://unpkg.com/@sanodoc-clinics/widget" data-clientId="CLIENT_ID_TO_INTERNAL_USE"></script>
Requirements
Node with node package manager (npm) installed
More info: https://nodejs.org/en/download/package-manager/
Dependencies
This project uses Parcel as application bundler
More info: https://parceljs.org/getting_started.html
How to run locally
- clone this project
- at this project folder, run on the console:
npm install
- after installing the dependencies, start the project running on the console:
npm run start
- open your browser at
http://localhost:1234
Technical info
Extending bootstrap
This project extends bootstrap definitions (rather than overwriting).
You can see what is extending on the file _custom.scss
More info starting at https://getbootstrap.com/docs/4.1/getting-started/theming/#variable-defaults
PostHtml
Parcel has built-in support for PostHtml.
PostHtml is a tool to transform HTML with JavasScript Plugins
This library is used to avoid HTML duplications, like the global footer and the navigation menu
More info: https://posthtml.org/ and https://parceljs.org/html.html#posthtml
Prettier
This project uses this library to keep the code well formated. Is important to keep the same standard among the files.
To use or not is up to you, impact in absolutely nothing, it is just about code formating.