Timestamp Microservice with testable user stories - Guinea Pigs needed šŸ¹

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

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ā€™.

2 Likes

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.

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

1 Like