generated from StraykerPL/PaternRepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Web Frontend
Strayker edited this page Oct 29, 2023
·
2 revisions
Our frontend project was created on custom file structure, defined as follows:
-
srcfolder to contain all production files, -
apifolder to contain auto-generated files from OpenAPI Generator, -
appfolder for main component, -
assetsfolder for static files to use in app, like images, -
environmentsfolder to store environments config files, -
pagesfolder to store components for app's pages, with their own subcomponents, -
sharedfolder to store globally used code,
- When you are creating component for give page only, create it in this page's components folder.
- When you are creating component for more than one page, eg. Home and Add Task, then create it in
shared/componentsdirectory, - When you are creating new page, create page component in
pagesfolder and subfoldercomponentsfor it,
shared folder contains following folders:
-
componentsfor cross-page components, -
constsfor constant values files, -
modelsfor developer-defined data interfaces, -
servicesfor developer-defined code service, -
stylesfor globally accessible styling instructions,
Current set of project's commands is:
npm run dev
to build dev environment and host web server,
npm run build
to build prod environment, not hosting web server,
npm run gen
to generate API services to handle backend's endpoints on frontend.
Please let us know about it via bug report on Binder's project repo.