-
Welcome to your
Basic Single Page Application Repository
. Use this to start your own Greenfield Project using ReactJS and common industry standards. -
This repository assumes a handful of industry practices and standards. We strive to keep you on the bleeding edge of the industry and as a result, we have made some opinions for you so that you don't have to; you're welcome.
-
The following was built using Create React App for base boiler-plating. We will maintain the dependencies as according to their specifications as an Engineering Organization.
- All of the reusable components for this repository can be found here using a Storybook.
- For more information on contributing to our Storybook for this application you can see here.
-
REACT_APP_CLIENT_ID
Okta client id -
REACT_APP_OKTA_ISSUER_URI
Okta api authorization server issuer uri (eg.https://name-438r8hr.okta.com/oauth2/default
) -
REACT_APP_API_URI
The URL (localhost or live) for the Backend that you're building -
Fork and clone the repo to install it as your own remote.
- note please be sure to set your remote for this repo to your to point to your Labs Team Front End Repository.
-
run:
npm install
to download all dependencies. -
run:
npm start
to start your local development server.
- Your front end is to be deployed using AWS amplify. You can find a step-by-step deployment guide here.
- Your engineering manager will ensure that you have the credentials you need to get your app deployed.
- We feel that you shouldn't have to spend time as a developer worrying about where your files should go and your architectural decisions that you'd have to make if you started from scratch.
- Following the patterns we've laid out for your and the definitions of 'components' will help you focus on getting work done, rather than spending time deliberating on 'how' your work will get done.
- Please see the following documentation on how to work with and structure your components in this app.
-
In order to provide an experience for you to dive right into a code base and have everything you need to successfully style and craft your UI Components we'd like for you to gain some practice using the
ANT Design Library
. -
Instructions on how to use components can be found in the
notes
portion in the project storybook. -
It is recommended that you use the AntD components as your common components.
-
Even though you're using Ant Design and the global stylesheet that comes with it, you can control the theme of your application by changing things like font-family, sizes, border-radius', primary/accent colors etc.
-
To do this, simply go to the
theme-overrides.js
file and use the following properties to override the styles -
You will need to restart your app completely restart your dev server when making changes to this JS file
- We have provided and example of a simple Plot Charting component that can be built, configured, and delivered for your use by the Data Science Team.
- We strongly urge you to work in constant collaboration with the data scientists in order to pull in their work into your application, ensure that their work matches the theme and style of your team's application, and that the data you pull in represents what problem that team was trying to solve. This will be a process that requires work and dedication and give-and-take.
- Example Components: Please see here for an example of how to work w/
Plotly.js
andReact-Plotly.js
.
- In accordance with our Labs Engineering Standards this app uses common practices for Unit/Integration Testing using: React Testing Library Jest
- For examples on how to test your application and more information please see the following documentation.
- As this repository is a Work In Progress (WIP) we'd love to hear more about what is working for you and what could be improved. Please use the
Issues
tab in Github to submit and file any issues that come up during your development cycle. Issues should be related to things like, documentation, bugs that come up with the existing flow, architectural discussion, suggestions for improvements, and anything that you find cumbersome about getting started and working through a product cycle using these tools. - Please use
Labels
when filing issues try and include screenshots of bugs and steps to reproduce.