This repository contains a Node.js server for developing and customizing the "PIN management" form provided by Bridge.
For additional details, please see https://apidocs.bridge.xyz/docs/cards-pins
# Install dependencies
npm install
# Start the development server
npm run devBy default, the server will start at http://localhost:8000.
Changes should be applied to the included .scss files and will be automatically compiled to CSS.
During development, you should not need to restart the server, as changes will automatically propogate (as long as they are valid).
By default, the server uses styles/default.scss. To use a different style file, use one of the following methods:
# Use the default style
npm run dev
# Use the default partner style
npm run dev:partner-defaultYou can specify any style file using the STYLE environment variable:
# Use the default-partner style
STYLE=default-partner npm run dev
# Use any other style file in the styles directory
STYLE=your-custom-style npm run devMake sure the specified style file exists in the styles directory with the .scss extension.
The SCSS files are organized as follows:
styles/default.scss- Main stylesheet with variables and stylesstyles/default-partner.scss- Reference file which should be used by partners to customize the form
In order to add a new stylesheet, you should do the following:
- Copy the
partner-default.scssfile to a new file in thestylesdirectory. - Edit the new file to your liking.
- Run and validate your style by running:
STYLE=your-style-name npm run devAfter you are satisfied with your stylesheet, please ping the Bridge team so that we can get it added to your configuration.