Skip to main content

Project structure

After CLI generating a new project, its directory will be as follows:

frontend
├── src
│ ├── components/
│ ├── App.js
│ ├── index.html
│ └── main.js
├── test/
├── .env
├── build.js
├── config.js
└── server.js
  • /src/ - Include all codes which are built to be run on browser.
    • /src/components/ - Folder contains all components for web application.
    • /src/App.js - The first UI component to be rendered as pre-defined in main.js.
    • /src/index.html - Default HTML document as an entry point for your app.
    • /src/main.js - The main script included in index.html.
  • /test/ - All setups for testing.
  • /.env - Use this file to define environment variables for your project.
  • /build.js - Script to build your project.
  • /config.js - Script to load configs for your project, including all pre-defined environment variables in .env.
  • /server.js - Script to build your project and serve it through a development server.