Coder Social home page Coder Social logo

article-management-rest-api's Introduction

Docs

Articles Management API Developed under Go (Golang) platform. This project developed using gin framework to ease the development. See Source For all the library used

Index

Overview

  1. Import the query.sql to your MySql Database.
  2. Set your Database Connections (username/password in services/mysql and core/sqlboiler.toml )
  3. Run the project

See Quick Start for example implementations.

Support

You can also email [email protected] or file an Issue.

Quick Start

Command Line

Run your project using this command

# download the project into $GOPATH/src
git clone https://github.com/bxcodec/Article-Management-REST-API.git
cd path_of_the_project

# import the query.sql to your mysql server
mysql -u username -p db_name < query.sql

# set your mysql connection authentication
cd "services/mysql"
nano mysql.go

cd "core"
nano sqlboiler.toml

# run the project
go run main.go

If any error happen when running the program caused by missing package, just import it using go get package_name command

Running Your API

protocol: http
host 	: localhost
port 	: 9090
endpoint: "/v1/articles"

For the API documentation open http://localhost:9090/v1/docs

Source

Below listed all the library used here.

Gin is a web framework written in Go (Golang). It features a martini-like API with much better performance, up to 40 times faster thanks to httprouter. If you need performance and good productivity, you will love Gin.

SQLBoiler is a tool to generate a Go ORM tailored to your database schema.

It is a "database-first" ORM as opposed to "code-first" (like gorm/gorp). That means you must first create your database schema. Please use something like goose, sql-migrate or some other migration tool to manage this part of the database's life-cycle.

Inline Documentation for RESTful web APIs apiDoc creates a documentation from API annotations in your source code.

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.