Shared models and validation for the Bicycle Touring Companion
BTC-Models offers a way for other parts of the application (like the server and client applications) to agree on how certain pieces of information (such as passwords, emails, schedules, etc…) should look. When included into other parts of the application, btc-models handles logic and functions for it’s represented objects effectively separating out the data-logic code from the view code in the btc-app.
- To test a working version of the
btc-models
, runnpm link
in the root folder of this repo. - Build changes in
src
by runningnpm run build
- Then in any other repo you wish to test
btc-models
(likebtc-app
,btc-server
, etc...) runnpm link btc-models
. That's it! To find more info check out the npm-link documents https://docs.npmjs.com/cli/link
- Make sure NODE_ENV is set to
test
- run
npm run build
- run
npm run test