This project was bootstrapped with Create React App using the Typescript template.
You can check the project architecture here
We suggest use of NVM to manage your node versions.
The environment variables are in src/config
. You can use the .env.example
as a base to create your .env.local
config file
npm install
npm run start:dev
The project will be running at http://localhost:3000/
- We use the React Testing Library to develop our tests.
- You can use the MSW to mock your request to do integration tests in your pages.
- An example is available at
src/tests/request_mocks
- An example is available at
npm run test
The following command will generate an optimized production build. The statics files will be generated at build/
folder.
npm run build
You can read more about how to serve the statics here
This boilerplate already has the storybook configured with some addons.
- The storybook's configs are in the
.storybook
directory.
-
To run the storybook at development version, you can use the command:
npm run storybook
- The command above must open your browser at [http://localhost:6006]
-
How to build it for production:
npm run build-storybook
- A directory with name
storybook-static
will be generated with all storybook statics.
In the project directory, you can run all of react-scripts commands.
To learn React, check out the React documentation.