Welcome to CityJS London/Singapore 🇬🇧/🇸🇬. This workshop will teach you the basics of Astro.
During the workshop we'll discuss the following topics:
- Setting up a basic Astro project
- Defining a Layout
- Adding TailwindCSS
- Creating routes
- Creating server/API routes
- Fetching data via REST and GraphQL
- Adding Optimised Images
To have a smooth experience during the workshop, please make sure that you follow a few simple suggestions. Please make sure that your environment is setup with the appropriate version of Node.js installed (more details in the Setup section).
Please also make sure to have installed the following:
And have an account with the following providers:
On top of these, please have your favourite code editor and terminal ready.
- Please make sure to run the latest available Node LTS (
v18.x.x
). (Usenode -v
to see the currently installed version) - Install the project dependencies by executing
npm i
in your terminal.
Please find the lesson plan for the workshop below.
- 00 - The Basics of Astro
- 01 - Layouts and Routing
- 02 - Server-Side Rendering
- 03 - Data Fetching
- 04 - Content Collections
- 05 - Image Optimisation
There are some routes within this application (e.g. /graphql
) which require a running GraphQL server. During the workshop some service endpoints will run locally on my machine and after the worskhop you'd have to use a different service, and/or create one on your own.
Feel free to connect with me - I'd be more than happy to answer questions related to Astro after the workshop as well.
- Tamas Piros LinkedIn | tpiros.dev