Giter Club home page Giter Club logo

go-blog-app's Introduction

Go Blog App

This is a simple blog application built with Go (Golang) and Echo framework. It allows users to create, view, edit, and delete blog posts.

Features

  • Create blog posts with a title, description, and content.
  • View individual blog posts.
  • Edit existing blog posts.
  • Delete blog posts.
  • Upload and serve images for blog posts.

Requirements

  • Go (Golang)
  • Echo framework
  • SQL database (SQLite, MySQL, PostgreSQL, etc.)

Installation

  1. Clone the repository:

    git clone https://github.com/Kei-K23/go-blog-app.git
  2. Navigate to the project directory:

    cd go-blog-app
  3. Create a .env file in the project root and specify your database connection URL:

    DB_URL=<your_database_connection_url>
    
  4. Install dependencies:

    go mod tidy
  5. Build and run the application:

    go run main.go

Database Setup

The application uses a SQL database to store blog posts. Make sure you have a SQL database server installed and running.

By default, the application uses Turso (SQLite). If you want to use a different database (MySQL, PostgreSQL, etc.), you'll need to modify the database driver and connection URL in the code.

Usage

  • Access the application by visiting http://localhost:8080 in your web browser.
  • Click on the "Create New Blog" button to create a new blog post.
  • Click on a blog post title to view its details.
  • Click on the "Edit" button to edit a blog post.
  • Click on the "Delete" button to delete a blog post.

Feel free to contribute to the project and improve its features!

go-blog-app's People

Contributors

kei-k23 avatar

Stargazers

 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.