Code Monkey home page Code Monkey logo

serifer's Introduction

Seifer

Golang User Story Recommendation/Query Engine

Related repos:

https://github.com/bao1018/gpt-2-master

https://github.com/luzhouuu/UserstoreisTag

Overall Tech Arch Diagram

Image of Arch Design

Install

Golang 1.12 and make go_mod be ON

  1. Create a DB called selfile in Postgres
  2. Run the DDL SQL to create the DB table
/migration/000001_create_story_table.up.sql
  1. Add config.json in root directory with below reference
{
    "addr": "127.0.0.1",
    "port": "2333",
    "database": {
        "connection": "postgresql://pguser:pgpassword@localhost/seifer"
    }
}
  1. Run below commands to install/run the go server
go run main.go
  1. Test the API Try below to test the API
curl -X POST \
http://localhost:2333/user_story/similar \
-H 'Accept: */*' \
-H 'Content-Length: 377' \
-H 'Content-Type: application/json' \
-d '{
"title":"Lockbox / Receipt",
"body":" As a ClientABC Employee"
}'

serifer's People

Contributors

kyicy avatar liuwei-say avatar luzhouuu avatar

Watchers

 avatar  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.