cra-template-typescript-redditech
v1.1.10
Published
The base TypeScript template for Create React App with options for storybook, moment, react-router-dom and antd (Ant Design) modules added by Redditech. Early WIP.
Downloads
51
Maintainers
Readme
cra-template-typescript-redditech
This is the TypeScript template for Create React App modified by Redditech with (useful) additions for bootstrapping a new project.
Modifications include:
- adding
moment
- adding
antd
(Ant Design System) - adding
react-router-dom
- adding
storybook
- adding
appinsights
- adding
styled-components
- adding sample code for components using Atomic Design
- adding sample code for using
REACT_APP_
custom environment variables - adding sample Dockerfile
To use this template, add --template typescript-redditech
when creating a new app.
For example:
npx create-react-app my-app --template typescript-redditech
# or
yarn create react-app my-app --template typescript-redditech
For more information, please refer to:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
Deployment of cra-template-typescript-redditech
at cra-redditech
A deployment of the generated code is on Github at https://github.com/nissan/cra-redditech
Additionally Docker image can be found at https://hub.docker.com/repository/docker/nissan/cra-redditech
and can be run with docker run -d --rm -p 8080:80 nissan/cra-redditech
There is also deployed a sample of the base site generated on Azure at https://cra-redditech.azurewebsites.net/
Warning: This does not follow production code best practices
I'm learning by doing, so as much as this is deployed into a production-like environment, it probably isn't production ready from the point of view of following the most scalable or secure practice for deploying. As I learn, it improves, but I welcome the feedback on obvious (and not so obvious) issues with the approaches taken here to get to working code more quickly.