https://github.com/extrawest/nx-react-redux-toolkit-starter
https://github.com/extrawest/nx-react-redux-toolkit-starter
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/extrawest/nx-react-redux-toolkit-starter
- Owner: extrawest
- Created: 2023-02-12T21:16:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T21:17:23.000Z (over 3 years ago)
- Last Synced: 2025-03-30T17:46:38.499Z (about 1 year ago)
- Language: TypeScript
- Size: 475 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React starter with NX dev tools and typescript


[](https://github.com/extrawest/react-nx-starter/graphs/commit-activity)

[](https://github.com/extrawest/react-nx-starter/tags/)
### List of Tools







### Project structure
```text
react_app
├── .env
├── .env.dist
├── tsconfig.base.json
├── workspace.json
├── .eslintrc
├── .editorconfig
├── .prettierrc
├── .prettierignore
├── .nxignore
├── package.json
├── package-lock.json
├── apps
├── template
├── favicon.ico
├── index.html
|── main.tsx
├── src
| ├── app
| └── assets
| └── environments
| └── pages
| └── routes
| └── theme
├── template-e2e
| └── ...
├── libs
├── redux
| |──src
| | ├── apis
| | | ├── ...
| | ├── axios
| | | ├── ...
| | ├── middleware
| | | ├── ...
| | ├── slices
| | ├── ...
│ ├── shared
| |──src
| | ├── hocs
| | | ├── ...
| | ├── hooks
| | | ├── ...
| | ├── i18n
| | | ├── ...
| | ├── permissions
| | | ├── ...
| | ├── types
| | | ├── dto
| | | ├── interfaces
| | | ├── enums
| | ├── ui
| | | ├── ...
| | ├── utils
| | | ├── ...
└── templateapp
└── src
├── assets
│ ├── images
| └── ...
├── components
| ├── common
| | ├── ...
| | └── ...
│ └── ...
├── hocs
│ └── ...
├── hooks
│ └── ...
├── layouts
| └── ...
├── routes
| └── ...
├── forms
| └── ...
├── containers
│ └── ...
├── utils
| ├── ....
|──...
```
# Available Scripts
Expected node version ">=12"
Clone the repo on your computer. In your terminal, cd into the directory you just added
To install all dependencies, run
npm i || yarn install
## Development
## Development server
For a dev templatel server run:
`npm run start:template`
or
`yarn start:template`.
Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
## Build
Run `npm run build:template` to build the template application. The build artifacts will be stored in the `dist/` directory.
Run `npm run run:many` to build all projects. The build artifacts will be stored in the `dist/` directory. Use this command for CI
## Lint
Run `npm run lint` to check the lint for all workspace.
Run `npm run lint:all` to check the lint for all applications, libs.
Run `npm run lint:all:fix` to fix the lint errors.
### Config params
1. `NX_BACKEND_URL`- api endpoint
2. `NX_CRYPTO_JS_KEY` - key for decrypt & encrypt
3. `NX_SITE_NAME` - setup site name
## Created by Extrawest React.js Team
## Extrawest.com, 2023