Inside of TOPSIM - v2, you'll see the following folders and files:
/
βββ public/
β βββ favicon.svg
βββ src/
β βββ assets/
β β βββ images/
β β βββ scss/
β β βββ global.scss
β βββ components/
β β βββ layout/
β β β βββ Navigation.astro
β β βββ react/
β βββ layouts/
β β βββ Layout.astro
β βββ constants/
β β
β βββ pages/
β βββ index.astro
βββ package.json
βββ tailwind.config.cjs
βββ tsconfig.json
βββ astro.config.mjs
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
yarn |
Installs dependencies |
yarn start |
Starts local dev server at localhost:3000 |
yarn run build |
Build your production site to ./dist/ |
yarn run preview |
Preview your build locally, before deploying |
AstroJS
: More_information Sα» dα»₯ng AstroJS_framework Δα» xΓ’y dα»±ng
react - astrojs/react
: Sα» dα»₯ng ReactJS_framework thΓ΄ng qua thΖ° viα»n astrojs/react
tailwindCSS
: CSS config with tailwindCSS library
evergreen - UI
: Using Component UI with EvergreenUI library
axios
: RESTful API with axios library
/src/
-
[pages]: PhΓ’n cαΊ₯p & cΓ‘ch ΔαΊ·t tΓͺn page sαΊ½ quy Δα»nh router của App
folders/(folders)/file.astro
- Extension bαΊ―t buα»c phαΊ£i lΓ.astro
, -
[layouts]: Defind ra cÑc layout khÑc nhau theo nhu cầu của từng views
-
[service]: RESTful API
-
[components]: Defind cΓ‘c component tΓ‘i sα» dα»₯ng, layout component, other framework components (React, Vue, ...)
-
[assets]: - Chα»©a cΓ‘c tΓ i nguyΓͺn của dα»± Γ‘n (icon, image, css - scss, ...) & export cΓ‘c phαΊ§n thΓ΄ng qua 1 file index.ts duy nhαΊ₯t của mα»i loαΊ‘i (Δα»i vα»i images). -
global.scss
css - scss của toΓ n bα» app (is:global), Δược import trong/src/layouts/Layout.astro
-
[astro.config.mjs]: config astro file + config cΓ‘c framework vα»i astro