The things you have to do after creating a repository based on this template are as follows:
- Change
name
inpackage.json
to the name of your application - Change
repository
inpackage.json
to the newly created repository- This property is used for link in footer in default.
- Change
basePath
inpackage.json
andrewrites.destination
inserve.json
to your application name- This property is used for root path of application in default.
First, install all dependencies.
npm install
# or
yarn install
If you want to change Auth0's configurations (i.e., client-id, domain, etc.), you need to set the following environment variables:
DATAWARE_TOOLS_AUTH_CONFIG_DOMAIN
: Domain of Auth0 (default:dataware-tools.us.auth0.com
)DATAWARE_TOOLS_AUTH_CONFIG_CLIENT_ID
: Client ID of Auth0 (default: the one for the demo page)DATAWARE_TOOLS_AUTH_CONFIG_API_URL
: Audience of Auth0 (default:https://demo.dataware-tools.com/
)DATAWARE_TOOLS_BACKEND_API_PREFIX
: Backend api url (default:/api/latest
)
Next, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000/{basePath} with your browser to see the result.
(If you configured basePath
property of package.json
to app-template-vite
, you should open http://localhost:3000/app-template-vite)
You can start editing the page by modifying pages/*.tsx
, components/*.tsx
. The page auto-updates as you edit the file.
$ export DOCKER_BUILDKIT=1
$ docker build -t app:latest --secret id=npmrc,src=${HOME}/.npmrc .
After success of building image
$ docker-compose up
-
dev
: Start development server. -
test
: Run all test process, including linting source code. -
lint
: Lint all source code. -
format
: Format all source code.
-
Build tool that aims to provide a faster and leaner development experience for modern web projects.
-
React components library. Simple and customizable, and make site accessible.
-
React data fetching library. Easy to caching data.
-
Navigation components library for React.
-
State management library for React.
-
Library for working with immutable state in a more convenient way.
-
Auth0 React SDK.
-
Dev tool for documenting, visual testing UI.
-
Visual regression test tool for Storybook
-
JavaScript Testing Framework with a focus on simplicity.
-
Library for testing UI components in a user-centric way.
-
API mocking library intercepting actual requests, by using Service Worker.
-
Opinionated code formatter for JS, JSX, TS, JSON, etc.
-
High customizable linter for JS/altJS.
-
High customizable linter for CSS/Sass/CSSinJS.
-
JavaScript tool manager like nvm, n