- This is a template Repository to create a new React Single Page Application
- It uses React/Redux/Typescript/Webpack/Babel/Eslint/Prettier/Jest
- Things to update:
public/index.html
title
-> set appropriate title for the new app- The
app-modal
div is for modal if needed. It can be left as is even if modal is not used in the app
public/images/
- This folder is to store any images that the app might use
package.json
- There will likely be many dependencies that need to be added/removed as required
- The
scripts
will likely need to be added/removed - Update these fields:
name
,description
,repository
,keyworkds
,homepage
amplify.yml
- Included if deploying to AWS Amplify
- Even if deploying to AWS, this file is optional
- Remove
gcp
folder if using this
gcp
folder- Included if deploying to GCP AppEngine instead of AWS Amplify
- Remove
amplify.yml
folder if using this
Dockerfile
- Has extra installs for webpack, don't know why or how, just didn't work on previous app without it
- Worked in Windows without those extra installs, does not work in Raspberry Pi without them
variables.env
- Update version and add endpoints as necessary
webpack.dev.config.js
- Update
devServer
->port
- Update default
BASE_URL
inEnvironmentPlugin
- Value for
BASE_URL
can be provided from CLI asnpm start -- --env base_url=DEV_URL
- Update
webpack.prod.config.js
- Update default
BASE_URL
inEnvironmentPLugin
- This configuration can be used for
docker
,cloud
or other profilesBASE_URL
variable can be provided at build time from command linenpm run build -- --env base_url=DOCKER_URL
ORnpm run build -- --env base_url=PROD_URL
- Update default
dependabot.yml
- Delete this file in the new app until automated merge is figured out
- Prettier and ESLint configurations are added by default
- Should work out of the box with ESLint/Prettier plugins in IntelliJ/VSCode
- In prettier, keep
lf
asendOfLine
even if working in Windows only
- Jest configurations are added for testing
--passWithNoTests
is added so that the test script would pass even if there are no tests in this skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
bibekaryal86/app-skeleton-react
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This is a template Repository to create a new React Single Page Application
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published