Open mmaedel opened 3 years ago
Did you follow the article?
https://fauna.com/blog/using-faunas-streaming-feature-to-build-a-chat-with-svelte
Be sure to create the necessary authorization stuff on Fauna.
Did you follow the article?
https://fauna.com/blog/using-faunas-streaming-feature-to-build-a-chat-with-svelte
Be sure to create the necessary authorization stuff on Fauna.
hello thank you for reply
yes I worked it all through....
Tomorrow I will do all from scratch again, seems i dont CreateDoc in the frontend...
my fauna stuff is all set (usually I do Go/GraphQL)
like:
`package main
import ( "encoding/json" "io/ioutil" "log"
"os"
f "github.com/fauna/faunadb-go/v3/faunadb"
)
type Access struct {
Timestamp int fauna:"ts"
Secret string fauna:"secret"
Role string fauna:"role"
}
type set struct {
Secret string json:"faunadb.adminSecretKey"
}
func main() {
var secret set
s, err := ioutil.ReadFile(`C:\Users\medie\AppData\Roaming\Code - Insiders\User\settings.json`)
if err != nil {
log.Println(err)
os.Exit(1)
}
json.Unmarshal(s, &secret)
fc := f.NewFaunaClient(secret.Secret)
//client := fc.NewSessionClient()
x, _ := fc.Query(f.CreateKey(f.Obj{"database": f.Database("FAUNA_CHAT"), "role": "server"}))
var access *Access
x.Get(&access)
client := fc.NewSessionClient(access.Secret)
_, err = client.Query(f.Create(f.RefCollection(f.Collection("ChatRooms"), 1), f.Obj{"data": f.Obj{"name": "test"}}))
log.Println(err)
}`
If you follow the tutorial you don't Go or backend!
If you follow the tutorial you don't Go or backend!
Hi
I did follow your tutorial but did not work...
Redo it today.
With golang i usualy do the fauna auth part and program logic and with graphql db transactions. Want to do svelte frontend implementation, and your repo comes in handy. But as said I have to check again.
Greetings and many thanks
hey please help not running ... what am I missing?
git cloned, updated dependencies(npm, fauna access secret, ...), run dev, localhost responding, BUT:
no message submission!
same with my vercel deployement!
:( Matthias