Closed expede closed 3 years ago
LOL right, maybe updating the tests would be a good idea π π€¦ββοΈ
Hey reviewers π
Just flipped this to ready for review. It's mostly a mechanical conversion to a record of routes, but that does mean a lot of small changes to lots of files. I'm happy to give a live walkthrough if anyone would like
β Tests β Build artifacts β Deployed to staging (to spot test existing tools like Drive)
/v2
routes)Β» ~/Desktop/fission setup -R staging
π± Setting up environment
πͺ Downloading managed IPFS for macOS
πποΈ Configuring managed IPFS
π Setting up keys
π Do you have an existing account? [Y/n] n
Username: expede-210909-staging2
Email: be.zelenka@gmail.com
β
Registration successful! Head over to your email to confirm your account.
ποΈ Initializing user config file
β
Done! Welcome to Fission, expede-210909-staging2 β¨
Β» ~/Desktop/fission whoami -R staging
π» Currently logged in as: expede-210909-staging2
Β» ~/Desktop/fission app register -R staging
π· Choose build directory (.):
β
App initialized as rich-short-square-alien.fissionapp.net
β―οΈ Next run fission app publish [--open|--watch] to sync data
π It may take DNS time to propagate this initial setup globally. In this case, you can always view your app at https://ipfs.runfission.com/ipns/rich-short-square-alien.fissionapp.net
Β» ~/Desktop/fission up -R staging
ππ« App publish local preflight
βοΈ Pushing to remote
π Now live on the network
π DNS updated! Check out your site at:
π rich-short-square-alien.fissionapp.net
LOL cut off the important line:
πͺ΄ DNSLink updated: bafybeifdp2zr5u5o4htv5ssbjqiwib5z7evt7rw2dwd3tzu2wtgkic6ndq
I started this as an experimental riff on #546. It tuns out that it's actually pretty nice!
Before
After
What is
mode
?mode
is the parameter that Servant will use to generate API, server, or client code. For example:How to Get Plain Servant
They have a bunch of helpers to go to- and from-Servant, aptly named
toServant
andfromServant
. There's also some for the type-level, likeToServantApi MyRoutes
Analysis
Upside π
Downside βΉοΈ
deriving Generic
, the compiler gives you no hint that you need to add itSemantic Changes
We haven't deployed #546 yet. This PR removes all of the deprecated paths from
/v2/api
.TODO
/v2/api
) to make sure nothing is brokenPATCH /v2/api/app
toPUT /v2/api/app
PATCH /v2/api/user
toPUT /v2/api/user