- TailwindCSS v3.3
- AstroJs v3
- AstroI18N
- StrapiCMS v4
-
Clone the repository.
git clone
-
Install dependencies.
npm install
-
Define the environment variables.
cp .env.example .env
Then open the
.env
file and set theSTRAPI_TOKEN
,STRAPI_URL
andRECAPTCHA_SECRET
environment variables to the correct values.STRAPI_TOKEN=https://api.example.com STRAPI_URL=https://api.example.com RECAPTCHA_SECRET=
Replace
https://api.example.com
with the correct value. -
Start the development server.
npm run dev
-
Open the source code and start editing!
Your site is now running at
http://localhost:4321
!
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
npm run astro --help |
Get help using the Astro CLI |
npm run i18n:sync |
Syncs i18n locales |