This is an authentication project that is based on react, which act as the controller for user signup and user profiler.
- Checkout zelda-root project.
- Change tsconfig.json and include path 'zelda-root/external_modules/shared-context/typings/types.d.ts'.
- Execute the project for use with zelda-root
npm start -- --port 8500
- Execute the project for local development. Read standalone - setup.
npm run start:standalone
- Add executable for hooks during commit
chmod a+x .husky/pre-commit
- All included html must be saved as ejs extension.
- Open the standalone application in site http://localhost:8500
- In the browser console, run localStorage.setItem('devtools', true); Refresh the page.
- From the "..." at the bottom add new modules
Name | Url |
---|---|
rxjs | https://cdn.jsdelivr.net/npm/@esm-bundle/rxjs/system/es2015/rxjs.min.js |
@walcron/zelda-shared-context | https://zelda-shared.walcron.com/walcron-zelda-shared-context.js |
- Project deployment works differently as there is NO hosting page. Means navigating to the page e.g. https://zelda-auth-react-walcoorperation.vercel.app/ will deal with NO Page found.
- All hosted microservice must be access via the js script, as in https:///walcron-zelda-auth-react.js
- Create a Github PAT (classic), with only read:packages access.
- Login locally into github NPM repo with the PAT.
npm login --scope=@yoonghan --auth-type=legacy --registry=https://npm.pkg.github.com/
- Copy in ~/.npmrc into vercel's variable NPM_RC. Basically the varible will contain:
//npm.pkg.github.com/:_authToken=...
@yoonghan:registry=https://npm.pkg.github.com/
- For accessing private repo, please allow Profile -> Settings -> Personal Access Token (classic), open read:packages (basically th esame as vercel deployment). For more info refer: https://docs.github.com/en/packages/working-with-a-github-packages-registry. Add as Github secret in Settings->Secrets And variable and add NPM_TOKEN key. NOTE: In merge NODE_AUTH_TOKEN is used instead.