Backend REST-api server for hyperism

hyperism-go

License: MIT GolangCI Lint github action

Backend REST-api server for hyperism

Quick Overview

Step 1. Deploy REST API, Database and IPFS

git clone https://github.com/hyperism/hyperism-go
cd hyperism-go
docker-compose up -d

Step 2. Private IPFS Peer-to-Server Setup

# Enter Server bash
docker exec -it server.hyperism.com bash
ipfs bootstrap rm --all
ipfs id -f='<addrs>' # Keep ipfs address except 127.0.0.1
exit
# Enter Peer bash
docker exec -it peer.hyperism.com bash
ipfs bootstrap rm --all
ipfs id -f='<addrs>' # Keep ipfs address except 127.0.0.1
ipfs bootstrap add <server ipfs address>
exit
# Enter Server bash
docker exec -it server.hyperism.com bash
ipfs bootstrap add <peer ipfs address>
exit
# Local bash
cd swarmkeygen && go run . generate > ../ipfs/swarm.key && cd ..
docker cp ipfs/swarm.key server.hyperism.com:/var/ipfsfb
docker cp ipfs/swarm.key peer.hyperism.com:/var/ipfsfb
docker-compose restart
# Check IPFS demo
./ipfs/e2e/test.sh p2s server.hyperism.com peer.hyperism.com

Step 3. Rest API Usage

GET     localhost:3000/
POST    localhost:3000/signup
POST    localhost:3000/loginin

# commands under this
# needs bearer token to execute
GET     localhost:3000/meta
GET     localhost:3000/meta/:id
POST    localhost:3000/meta
PUT     localhost:3000/meta/:id
DELETE  localhost:3000/meta/:id


Demo

TBA..

Contact

You can contact me via e-mail (sinjihng at gmail.com). I am always happy to answer questions or help with any issues you might have, and please be sure to share any additional work or your creations with me, I love seeing what other people are making.

License

The class is licensed under the MIT License:

Copyright (c) 2022 Team Hyperism

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Similar Resources

Go Twitter REST and Streaming API v1.1

go-twitter go-twitter is a Go client library for the Twitter API. Check the usage section or try the examples to see how to access the Twitter API. Fe

Dec 28, 2022

Golang client for PayPal REST API

Go client for PayPal REST API Coverage POST /v1/oauth2/token POST /v1/identity/openidconnect/tokenservice GET /v1/identity/openidconnect/userinfo/?sch

Dec 25, 2022

Unofficial Go SDK for GoPay Payments REST API

Unofficial Go SDK for GoPay Payments REST API Installation go get https://github.com/apparently-studio/gopay-go-api Basic usage client := gopay.NewCl

Nov 18, 2022

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs

PnPjs is a fluent JavaScript API for consuming SharePoint and Microsoft Graph REST APIs in a type-safe way. You can use it with SharePoint Framework,

Dec 23, 2022

Use Google REST api to extract your personal Photo Library

Photo Go A better approach to extracting your photos from Google to your personal cloud. I'm moving my photos out of Google to a Synology NAS. create

Dec 7, 2021

Go REST API for movies

Greenlight API Greenlight is an api, i implemented by following the book Let's Go Further by Alex Edwards If you like what you see please consider buy

Jul 17, 2022

Hassle-free REST API testing for Go

melatonin melatonin is a fluent, flexible REST API testing library for Go. It provides many of the benefits of a domain-specific test language but wit

Jan 8, 2022

A rest-api that works with golang as coin portfolio

Koinfolio A rest-api that works with golang as coin portfolio Technical Details Golang/Gin is used as application framework MongoDB is database Usage

Jun 1, 2022

REST API for "MovieShare".

movieshare_api Repository for backend of project "MovieShare". MovieShare API An awesome API for project "MovieShare". Requirements See modules list i

Apr 14, 2022
Comments
  • [RestAPI] Replace `ipfsFB` with `go-ipfs` and Synchronize `go-fiber` with `go-ipfs-api`

    [RestAPI] Replace `ipfsFB` with `go-ipfs` and Synchronize `go-fiber` with `go-ipfs-api`

    This revision implements follow

    • Replace ipfsFB with go-ipfs for converting network to public from private
    • Synchronize go-ipfs network with go-fiber using go-ipfs-api
  • [RestAPI] Add Features(Signup, Login, Query, Add, Delete, Update)

    [RestAPI] Add Features(Signup, Login, Query, Add, Delete, Update)

    This revision implements follow works.

    • Add files for signup, login, query, add, delete and update meta data.
    • Save user information into user collection
    • Save metadata information into meta collection
    • JWT Bearer Token
      • We can access to metadata with bearer token.
      • A token is created when we signup or login.
      • The token will be changed whenever we log in.
  • [IPFS] Deploy Peer-to-Server Private IPFS Network

    [IPFS] Deploy Peer-to-Server Private IPFS Network

    This revision implements follow

    • Add swarmkeygen go module for private network from IBM/IPFSfB
    • Add Peer-to-Server nodes docker-compose configs
    • Add peer & server containers to root docker-compose.yml
    • Add deploying guide in README
  • [RestAPI] MongoDB & Docker Compose Setup

    [RestAPI] MongoDB & Docker Compose Setup

    This revision implements follow

    • Add docker-compose.yaml.
      • with this, we can run fiber server and mongodb on docker.
      • DB data will be stored in mongodb directory.
    • add the necessary mod to go.mod and go.sum

    You can check the demo with follow comamnds

    docker-compose up &
    curl http://127.0.0.1:3000/api/catchphrases
    
A REST API microservices-based Twitter Clone server.

Simple API Twitter Clone A REST API microservices-based project to fetch, edit, post, and delete tweets. API documentation The API documentation is bu

May 13, 2022
Todosappdeploy - Todos REST API build using echo server

Todos Week 5 - Project Todo List Todos REST API build using echo server. The cod

Jan 14, 2022
Rest Api server, написанный на Golang

Задача: создать простой REST API, который будет позволять получать информацию про пиццу. Шаг 1. Желаемый функционал. Хотим собрать простой веб-сервер,

Aug 26, 2022
Triangula-api-server - API server for processing images with Triangula

Triangula API server Minimalistic API server that calculates and serves artistic

Jan 10, 2022
go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

go-whatsapp-rest-API go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface Multi-devices (MD) Support. This ver

Dec 15, 2022
Api-product - A basic REST-ish API that allows you to perform CRUD operations for Products

Description A basic REST-ish API that allows you to perform CRUD operations for

Jan 3, 2022
Lol-champions-api - A REST API app for CRUD' ing informations related to League of Legends champions, written with Go

LOL-CHAMPIONS-API Just a REST API app for CRUD' ing informations related to Leag

Mar 17, 2022
Instagram Backend API with golang
Instagram Backend API with golang

Appointy - Task Instagram Backend API 1) Creating an user 2) Getting an user by id 3) Creating a post 4) Getting a post by id 5) Getting List of posts

Oct 3, 2022
API client/backend for Moody's infrastructure

MoodyAPI API client/back-end for Moody's infrastructure The API back-end currently provides: DDNS Records Maintenance. Surveillance Camera Notificatio

Dec 14, 2022
The API backend for the HackMan hackathon event. Returns a random word associated with a unique key

The API backend for the HackMan hackathon event. Returns a random word associated with a unique key

Feb 18, 2022