| ... | @@ -30,13 +30,12 @@ Here we represent important files and folders at the root and (+1) level of the |
... | @@ -30,13 +30,12 @@ Here we represent important files and folders at the root and (+1) level of the |
|
|
- NextJS: `/public`, `/src` and some config files. Read about the importance of [project structure ](https://nextjs.org/docs/getting-started/project-structure#top-level-files)in NextJS for details on these.
|
|
- NextJS: `/public`, `/src` and some config files. Read about the importance of [project structure ](https://nextjs.org/docs/getting-started/project-structure#top-level-files)in NextJS for details on these.
|
|
|
|
|
|
|
|
* [ ] add src structure screenshot
|
|
* [ ] add src structure screenshot
|
|
|
* [ ] `/app` contains the entry point to both the web-UI and the web-API definitions
|
|
|
|
|
|
`/app` contains the entry point to both the web-UI and the web-API definitions
|
|
|
* web-UI definitions can be found under `/[locale]`
|
|
* web-UI definitions can be found under `/[locale]`
|
|
|
* web-API definitions can be found parallel to it under `/api`
|
|
* web-API definitions can be found parallel to it under `/api`
|
|
|
|
|
|
|
|
details of each of these folders will be explained in their respective pages. Since in NextJS folder structure defines available routes in the application the above structure allows for the web-UI to be served in the two different languages we support - English ( `/` or `/en`, which is default) and German ( `/de`)\] routes respectively . The web-APIs are consequently served via the `/api/{API_Endpoint}` routes. Read the [routing fundamentals ](https://nextjs.org/docs/app/building-your-application/routing)in NextJS for more details.
|
|
details of each of these folders will be explained in their respective pages. Since in NextJS folder structure defines available routes in the application the above structure allows for the web-UI to be served in the two different languages we support - English ( `/` or `/en`, which is default) and German ( `/de`)\] routes respectively . The web-APIs are consequently served via the `/api/{API_Endpoint}` routes. Read the [routing fundamentals ](https://nextjs.org/docs/app/building-your-application/routing)in NextJS for more details.
|
|
|
|
|
|
|
|
|
|
|
|
|
* `/components` contains definitions of all components written in React. The way components are made available in this folder is directly proportional to the order in which they appear based on the structure in `/src/app/[locale]`
|
|
* `/components` contains definitions of all components written in React. The way components are made available in this folder is directly proportional to the order in which they appear based on the structure in `/src/app/[locale]`
|
|
|
* `` /layout `` contains components and their respective child components that are used in`` `src/app/[locale]/layout.tsx` ``
|
|
* `` /layout `` contains components and their respective child components that are used in`` `src/app/[locale]/layout.tsx` ``
|
|
|
* `/app` contains components used in `src/app/[locale]/page.tsx` at its root level. While the `/app/results` folder contains components and their consequent child components that are used in `src/app/[locale]/results/page.tsx`
|
|
* `/app` contains components used in `src/app/[locale]/page.tsx` at its root level. While the `/app/results` folder contains components and their consequent child components that are used in `src/app/[locale]/results/page.tsx`
|
| ... | |
... | |
| ... | | ... | |