Giter Site home page Giter Site logo

blog_nextjs's Introduction

Blog App

This is a single-page application built with Next.js and Tailwind CSS for displaying a blog with posts and users. It utilizes the public API from GoRest to fetch data for blog posts and users.

Features

  • Display all posts on the home page (/). postlist
  • View detailed information about a post, including comments and author, on the post detail page (/post/:id). postdetail
  • List all users with CRUD operations (Create, Read, Update, Delete) on the users page (/users). users
  • Pagination to navigate through large datasets.
  • Responsive design for optimal viewing on various devices.

Tech Stack

  • Next.js
  • Tailwind CSS
  • DaisyUI

Getting Started

Follow these steps to run the application locally:

  1. Clone the repository:

    git clone https://github.com/ziyad1412/blog_nextjs.git
  2. Navigate to the project directory:

    cd blog_nextjs
  3. Install dependencies:

    npm install
    # or
    yarn install
  4. Run the development server:

    npm run dev
    # or
    yarn dev
  5. Open http://localhost:3000 in your browser to view the application.

Routes

  • Home Page: / - Displays all blog posts.
  • Post Detail Page: /post/:id - Displays detailed information about a specific post, including comments and author.
  • Users Page: /users - Lists all users with CRUD operations.

Deployment

The application is deployed using Vercel. You can access the deployed version here.

Additional Notes

  • This project utilizes Tailwind CSS with DaisyUI for styling. You can find more information about DaisyUI here.
  • Ensure that the environment variables are properly set up for the API endpoint and authentication (if required) before running the application.

Credits

blog_nextjs's People

Contributors

ziyad1412 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.