- Fork the repo
- Clone repo using
git clone https://github.com/<github-username>/react-ts-starter-kit.git
- Move to the project directory:
cd react-ts-starter-kit
. - Run
npm i
in order to install dependencies. - Create new file in root directory named
.env
and add following lines:
TITLE = "React Typescript Starter Kit"
- Now you can run
npm start
to see the app athttp://localhost:8080
-- src/
-- @types/ --> for custom typecsript types
-- assets/ --> for static assets and styles
-- components/ --> for components
-- common/ --> for shared components
-- routes/ --> for all routes
-- sagas/ --> for redux sagas
-- services/ --> for api requests
-- slices/ --> for slices created using @reduxjs/toolkit
-- utils/ --> for utility / helper functions
-- views/ --> for page specific/container components
This project is built on React Js using Typescript
Here are list of libraries being used in this project:
- Redux for state management
- Redux Saga for managing side-effect tasks
- Axios for making api calls
- Redux Toolkit for consise redux code
- React Router for routing
- Tailwind CSS for styling
Formatting and linting
- Aribnb style Guide for rules, standards and conventions
- Prettier for code formatting
- ESLint for linting
Bundling and compiling
Testing
- React testing library for rendering react components in tests
- Jest for testing
npm run lint
to fix automatically fixable lint errors
npm run build
to build the project for production use
npm run test
to run the tests
- All kinds of changes are welcome.
For help on Git commands visit here
For help on GitHub visit here
Notes:
-
This starter kit is inspired by this react-starter-kit.
-
Please follow the naming and folder structure conventions while contributing to the project.