downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
229 stars 91 forks source link

Getting dev backend to talk to frontend #116

Closed multimeric closed 3 years ago

multimeric commented 3 years ago

I'm trying to set up the dev environment.

For the backend I ran the instructions detailed here: https://github.com/downforacross/downforacross.com/tree/master/server#getting-started. For the frontend I ran these commands: https://github.com/downforacross/downforacross.com#getting-started.

However, while both appear to be working, uploading a .puz file appears to do nothing, and I can't see it on the puzzle list. Any pointers?

stevenhao commented 3 years ago

I need to update these docs, thanks for the reminder!

Running local frontend, talking to a publicly hosted backend (api-staging.foracross.com):

Running local backend and local frontend that talk to each other:

stevenhao commented 3 years ago

Not sure why uploading a puz does nothing when you run yarn start, it should append to the puzzlelist in firebase. I tried it locally and it successfully uploaded, both when running yarn start and yarn devfrontend.

Note that uploading a puzzle does not go through the server, since puzzles are stored in firebase. This is something I'm looking to change very soon -- most likely in the next few days!

multimeric commented 3 years ago

Great, thanks for the clarification. Actually when I originally used yarn start I had an empty puzzle list, but now when I do it I'm able to see everything I uploaded.