Golang User Story Recommendation/Query Engine
Related repos:
Golang 1.12 and make go_mod be ON
- Create a DB called selfile in Postgres
- Run the DDL SQL to create the DB table
/migration/000001_create_story_table.up.sql
- Add
config.json
in root directory with below reference
{
"addr": "127.0.0.1",
"port": "2333",
"database": {
"connection": "postgresql://pguser:pgpassword@localhost/seifer"
}
}
- Run below commands to install/run the go server
go run main.go
- 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"
}'