New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moleculer + NodeJS #146

Closed
icebob opened this Issue Nov 8, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@icebob
Contributor

icebob commented Nov 8, 2017

Moleculer is a microservices framework for NodeJS.

Codebase:
https://github.com/ice-services/moleculer-realworld-example-app

@icebob

This comment has been minimized.

Show comment
Hide comment
@icebob

icebob Nov 10, 2017

Contributor

The API specification is covered. server-tester result:

RealWorld sample app backend tester
        Testing URL: http://192.168.51.55:3000/api



Registering:
        [PASS] Registering with valid information. 512ms
        [PASS] Can't register with invalid email. 47ms
        [PASS] Can't register with invalid username. 30ms
        [PASS] Can't register with missing email. 22ms
        [PASS] Can't register with missing password. 18ms
        [PASS] Can't register with missing username. 19ms
        [PASS] Can't register with missing email & password. 18ms
        [PASS] Can't register with missing email & username. 18ms
        [PASS] Can't register with missing email & username & password. 24ms
        [PASS] Can't register with empty email. 19ms
        [PASS] Can't register with empty password. 18ms
        [PASS] Can't register with empty email & password. 14ms
        [PASS] Can't register with empty username & password. 14ms
        [PASS] Can't register with empty email & username & password. 15ms
        [PASS] Can't register with already taken email. 11ms
        [PASS] Can't register with already taken username. 10ms

Login:
        [PASS] Login with valid information. 98ms
        [PASS] Can't login with invalid email. 10ms
        [PASS] Can't login with missing email. 9ms
        [PASS] Can't login with missing password. 7ms
        [PASS] Can't login with missing email & password. 24ms
        [PASS] Can't login with empty email. 10ms
        [PASS] Can't login with empty password. 8ms
        [PASS] Can't login with empty email & password. 7ms
        [PASS] Can't login with unknown email. 9ms

User:
        [PASS] Can get current user. 12ms
        [PASS] Can't get current user without auth. 11ms
        [PASS] Can update user. 77ms
        [PASS] Can't update user without auth. 10ms
        [PASS] Can't update user with invalid email. 7ms
        [PASS] Can't update user with invalid username. 8ms
        [PASS] Can't update user with blank email. 7ms
        [PASS] Can't update user with blank username. 9ms
        [PASS] Can't update user with email of another user. 12ms
        [PASS] Can't update user with username of another user. 28ms

Profile:
        [PASS] Can't get the profile of an unknown user. 76ms
        [PASS] User can get the profile of another user. 12ms
        [PASS] User can't follow without authentication. 12ms
        [PASS] User can follow another user. 11ms
        [PASS] User can see they're now following. 11ms
        [PASS] User can't unfollow without authentication. 15ms
        [PASS] User can unfollow another user. 13ms
        [PASS] User can see they're not following anymore. 12ms

Article:
        [PASS] Can't get an unexisting article. 98ms
        [PASS] Can create an article. 221ms
        [PASS] Can retrieve an article. 20ms
        [PASS] Can't create an article without auth. 11ms
        [PASS] Can't create an article with missing title. 10ms
        [PASS] Can't create an article with missing description. 10ms
        [PASS] Can't create an article with missing body. 10ms
        [PASS] Can't create an article with blank title. 10ms
        [PASS] Can't create an article with blank description. 9ms
        [PASS] Can't create an article with blank body. 8ms
        [PASS] Can create another article with same title. 10ms
        [PASS] Can update an article. 14ms
        [PASS] Can't update an article without auth. 9ms
        [PASS] Can't update an article with blank title. 14ms
        [PASS] Can't update an article with blank description. 10ms
        [PASS] Can't update an article with blank body. 7ms
        [PASS] Can't update an article of someone else. 14ms
        [PASS] Can't delete an unexisting article. 95ms
        [PASS] Can't delete an article of someone else. 12ms
        [PASS] Can't delete an article without auth. 11ms
        [PASS] Can delete an article. 11ms
        [PASS] Can favorite an article. 9ms
        [PASS] Can unfavorite an article. 14ms

Comments:
        [PASS] Author can add a comment. 93ms
        [PASS] Another user can add a comment. 99ms
        [PASS] Can't add a comment without auth. 10ms
        [PASS] Can't comment an article with missing body. 11ms
        [PASS] Can't comment an article with blank body. 13ms
        [PASS] Can delete a comment. 11ms
        [PASS] Can't delete a comment of someone else. 23ms
        [PASS] Can retrieve comments in order. 11ms

Tags:
        [PASS] Can retrieve tags. 8ms

Articles:
        [PASS] Can retrieve articles with tag. 14ms
        [PASS] Can retrieve articles with author. 14ms
        [PASS] Can retrieve articles with tag & author. 9ms
        [PASS] Can retrieve articles with limit. 9ms

Feed:
        [PASS] Can retrieve feed. 17ms

0 errors.

Contributor

icebob commented Nov 10, 2017

The API specification is covered. server-tester result:

RealWorld sample app backend tester
        Testing URL: http://192.168.51.55:3000/api



Registering:
        [PASS] Registering with valid information. 512ms
        [PASS] Can't register with invalid email. 47ms
        [PASS] Can't register with invalid username. 30ms
        [PASS] Can't register with missing email. 22ms
        [PASS] Can't register with missing password. 18ms
        [PASS] Can't register with missing username. 19ms
        [PASS] Can't register with missing email & password. 18ms
        [PASS] Can't register with missing email & username. 18ms
        [PASS] Can't register with missing email & username & password. 24ms
        [PASS] Can't register with empty email. 19ms
        [PASS] Can't register with empty password. 18ms
        [PASS] Can't register with empty email & password. 14ms
        [PASS] Can't register with empty username & password. 14ms
        [PASS] Can't register with empty email & username & password. 15ms
        [PASS] Can't register with already taken email. 11ms
        [PASS] Can't register with already taken username. 10ms

Login:
        [PASS] Login with valid information. 98ms
        [PASS] Can't login with invalid email. 10ms
        [PASS] Can't login with missing email. 9ms
        [PASS] Can't login with missing password. 7ms
        [PASS] Can't login with missing email & password. 24ms
        [PASS] Can't login with empty email. 10ms
        [PASS] Can't login with empty password. 8ms
        [PASS] Can't login with empty email & password. 7ms
        [PASS] Can't login with unknown email. 9ms

User:
        [PASS] Can get current user. 12ms
        [PASS] Can't get current user without auth. 11ms
        [PASS] Can update user. 77ms
        [PASS] Can't update user without auth. 10ms
        [PASS] Can't update user with invalid email. 7ms
        [PASS] Can't update user with invalid username. 8ms
        [PASS] Can't update user with blank email. 7ms
        [PASS] Can't update user with blank username. 9ms
        [PASS] Can't update user with email of another user. 12ms
        [PASS] Can't update user with username of another user. 28ms

Profile:
        [PASS] Can't get the profile of an unknown user. 76ms
        [PASS] User can get the profile of another user. 12ms
        [PASS] User can't follow without authentication. 12ms
        [PASS] User can follow another user. 11ms
        [PASS] User can see they're now following. 11ms
        [PASS] User can't unfollow without authentication. 15ms
        [PASS] User can unfollow another user. 13ms
        [PASS] User can see they're not following anymore. 12ms

Article:
        [PASS] Can't get an unexisting article. 98ms
        [PASS] Can create an article. 221ms
        [PASS] Can retrieve an article. 20ms
        [PASS] Can't create an article without auth. 11ms
        [PASS] Can't create an article with missing title. 10ms
        [PASS] Can't create an article with missing description. 10ms
        [PASS] Can't create an article with missing body. 10ms
        [PASS] Can't create an article with blank title. 10ms
        [PASS] Can't create an article with blank description. 9ms
        [PASS] Can't create an article with blank body. 8ms
        [PASS] Can create another article with same title. 10ms
        [PASS] Can update an article. 14ms
        [PASS] Can't update an article without auth. 9ms
        [PASS] Can't update an article with blank title. 14ms
        [PASS] Can't update an article with blank description. 10ms
        [PASS] Can't update an article with blank body. 7ms
        [PASS] Can't update an article of someone else. 14ms
        [PASS] Can't delete an unexisting article. 95ms
        [PASS] Can't delete an article of someone else. 12ms
        [PASS] Can't delete an article without auth. 11ms
        [PASS] Can delete an article. 11ms
        [PASS] Can favorite an article. 9ms
        [PASS] Can unfavorite an article. 14ms

Comments:
        [PASS] Author can add a comment. 93ms
        [PASS] Another user can add a comment. 99ms
        [PASS] Can't add a comment without auth. 10ms
        [PASS] Can't comment an article with missing body. 11ms
        [PASS] Can't comment an article with blank body. 13ms
        [PASS] Can delete a comment. 11ms
        [PASS] Can't delete a comment of someone else. 23ms
        [PASS] Can retrieve comments in order. 11ms

Tags:
        [PASS] Can retrieve tags. 8ms

Articles:
        [PASS] Can retrieve articles with tag. 14ms
        [PASS] Can retrieve articles with author. 14ms
        [PASS] Can retrieve articles with tag & author. 9ms
        [PASS] Can retrieve articles with limit. 9ms

Feed:
        [PASS] Can retrieve feed. 17ms

0 errors.

@EricSimons

This comment has been minimized.

Show comment
Hide comment
@EricSimons

EricSimons Nov 15, 2017

Member

@icebob wow, amazing work! I just created the official repo for it (https://github.com/gothinkster/moleculer-node-realworld-example-app) and listed on the main readme :D

Thanks again for taking the time to create this, you rock!! 👏 💯

Member

EricSimons commented Nov 15, 2017

@icebob wow, amazing work! I just created the official repo for it (https://github.com/gothinkster/moleculer-node-realworld-example-app) and listed on the main readme :D

Thanks again for taking the time to create this, you rock!! 👏 💯

@EricSimons EricSimons closed this Nov 15, 2017

@icebob

This comment has been minimized.

Show comment
Hide comment
@icebob

icebob Nov 15, 2017

Contributor

Great! Thank you! 👍

Contributor

icebob commented Nov 15, 2017

Great! Thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment