Following the article Manual Setup in the Astro docs.
- In the project folder, with
npm init --yes, create apackage.jsonfile to manage dependencies. - Install astro with
npm install astro - Replace the placeholder text in the ‘scripts’ section of
package.jsonwith:"dev": "astro dev", "build": "astro build", "preview": "astro preview" - Create the first page in
src/pages/index.astro. - Create static asset
public/robots.txtwith:
This is something I need and want to learn more about. Info from Google, a blog post on robots.txt for AI Bots: What to Allow, What to Block, and Why, an article on How to block AI Crawler Bots using robots.txt file, and personal website and for-fun project robotstxt.com from some SEO expert.# Example: Allow all bots to scan and index your site. User-agent: * Allow: / - Add TypeScript support by adding
tsconfig.jsonat the root of the project. Set the contents of the file to:{ "extends": "astro/tsconfigs/base" } - Start the astro server with
npm run dev