Skip to content

nidhish-nayak/strapi-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Fullstack Blog Application using Astro 3.0 & Strapi CMS

Welcome to our Fullstack Blog Application! This project is built with Astro 3.0 on the front-end and Strapi CMS on the back-end. It allows you to create, manage, and publish blog content with ease.

Project Structure

  • Server: Contains the Strapi CMS configuration and models.
├── public/             # Public assets and HTML template
├── src/
│   ├── api/            # Articles and project apis
│   ├── types/          # Global types
│   ├── content/        # Admin dashboard config
└── ...
  • Client: Houses the Astro 3.0 frontend code and components.
├── public/             # Public assets and HTML template
├── src/
│   ├── api/            # All functions handling getPosts
│   ├── components/     # Reusable Astro components
│   ├── content/        # Blog Content
│   ├── layouts/        # Reusable layouts for posts
│   ├── pages/          # Top-level application pages
│   └── styles/         # Global CSS styles
└── ...

Features

  • Astro 3.0 Frontend: Utilize the power of Astro 3.0 to build a fast, static site with dynamic features.
  • Strapi CMS Backend: Manage your blog's content, users, and more with the user-friendly Strapi CMS.
  • Blog Posts: Create, edit, and delete blog posts with ease. Categorize and tag posts for easy navigation.
  • Responsive Design: The application is designed to work seamlessly on both desktop and mobile devices.

Getting Started

1. Clone the Repository:

git clone https://github.com/nidhish-nayak/strapi-blog.git
cd strapi-blog

2. Setup Strapi CMS:

Navigate to the server folder:

cd server

Install dependencies and run Strapi:

yarn install
yarn run develop

Follow the on-screen instructions to set up your Strapi CMS. Once done, you can access the Strapi admin panel at http://localhost:1337/admin.

3. Configure Astro Frontend:

Navigate to the client folder:

cd ../client

Install dependencies:

pnpm install

Create a .env file in the client directory and add the following:

VITE_STRAPI_API_URL=http://localhost:1337

Update the URL if your Strapi instance is running on a different port or domain.

4. Run Astro Application:

Start the Astro development server:

pnpm run dev

Open your browser and go to http://localhost:3000 to view the blog application.

5. Explore and Customize:

  • Explore the Strapi admin panel to create blog posts, categories, and manage users.

  • Customize the Astro frontend by modifying components in the src directory.

  • shared: Shared code or utilities that may be used by both the frontend and backend.

Available Scripts

In the project directory, you can run:

Backend:
cd server Change to backend directory
yarn install Install backend dependencies
yarn run develop Run Strapi in development mode
Frontend:
cd client Change to frontend directory
pnpm install Install frontend dependencies

Deployment

To deploy your Fullstack Blog Application, follow the deployment instructions for both Strapi CMS and Astro. You can use platforms like Vercel, Netlify, or others for the frontend, and platforms like Heroku or AWS for the backend.

Feel free to explore the capabilities of Astro and Strapi to enhance and extend the features of your blog application. Happy coding!

About

Strapi Blog is a full-stack blog application using Astro 3.0 & Strapi CMS which gives user the ability to edit blogs blazingly fast.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published