Timestamp Microservice with testable user stories - Guinea Pigs needed 🐹

Timestamp Microservice with testable user stories - Guinea Pigs needed 🐹
0.0 0

#1

As you may have heard, @em-ant, @Greenheart, and @systimotic have been hard at work building projects with testable user stories. We are looking for a few volunteers to attempt to build these based on their automated tests.

The goal is for campers to be able to build these projects step by step following user stories. This will make the projects less intimidating and more fun. Oh, and don’t worry - we’ll still have plenty of optional projects where we don’t provide you with any tests. And if you’ve previously built these projects, you don’t need to build them again.

If you’re interested in attempting this, please reply to the thread and let us know you’ve started it. The more people who want to build this, the better, as we can start gathering feedback.

Thanks, and happy coding!

The project tester (enter the public HyperDev URL for your project and set it to MS1 - Timestamp): https://narrow-plane.hyperdev.space/

Working example: https://hyperdev.com/#!/project/curse-arrow

Boilerplate to remix: https://hyperdev.com/#!/project/shimmer-ripper


#2

Here’s my live version: https://valiant-plastic.hyperdev.space/
And here is the code: https://hyperdev.com/#!/project/valiant-plastic

In my original project I used moment.js library so I decided to stick to it. Because of that I couldn’t pass 6th test - it was expecting ‘Invalid Date’, but moment.js returns ‘Invalid date’ so I had to add additional code just to capitalize ‘date’.


#3

We’ve changed the user stories a bit. Now in case of error you should return {error: ‘invalid date’}. The test is now case insensitive. Thanks for your feedback.


#4

I did this one a few months back, to match the input/output of the example app at the time. Inputs and expected output changed with this version so I ended up mostly rewriting it. All tests pass fine now.

Code : https://gomix.com/#!/project/river-gecko