This project is configured to use a designated account in TimeTac's sandbox environment.
The playground
account is available at https://go-sandbox.timetac.com/playground. It uses a special configuration allowing to access and
modify all the account's data. Log in with the following credentials:
- user:
manager
- password:
playgroundNotSoSecure
These credentials are used for authentication in the web app as well as the REST API. For convenience, they are already hard-coded in apiConfig.ts.
This demo-account is reset to its initial state in regular intervals.
Node v18 is required to run this project.
To avoid cross-origin resource sharing (CORS) issues, a proxy server is configured. It allows to access the sandbox server's REST API via localhost. The configuration is available in vite.config.ts.
Of course it is possible to request data using a general purpose library like axios. To facilitate the task, TimeTac provides the open source @timetac/js-client-library. This library is used in the playground by default. It is also imported by some of TimeTac's newest products.
Please refer to https://api.timetac.com/ for a documentation of TimeTac's REST API.
This project was bootstrapped with Create React App. In the project directory, you can run:
Installs all dependencies.
Runs the app in the development mode and automatically launches the proxy
server.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the jest test runner in the interactive watch mode.\
Builds the app for production to the dist
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!