Skip to content

namgivu/dockerize-reactjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make sure you have installed yarn or npm package manager

Available Scripts

yarn or yarn install

The command will install all packages that need to run the app.
node_modules folder will be created after run this command.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn build

The command is to build the project codes into a build folder.
The build folder used to deploy to production server.

Custom app params with .env

You can create a file named .env to set up environment variables.
Make sure all variables in this file MUST have prefix REACT_APP_xxx
We should use .env for local only and do not add to git For production environment variable, we define in .env.production ex: REACT_APP_SECRET_KEY=abcde

yarn test

Launches the test runner in the interactive watch mode.
We use jest and enzyme and react-testing-library.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published