Skip to content

petronetto/no-framework

Repository files navigation

  _   _         ______                                           _    
 | \ | |       |  ____|                                         | |   
 |  \| | ___   | |__ _ __ __ _ _ __ ___   _____      _____  _ __| | __
 | . ` |/ _ \  |  __| '__/ _` | '_ ` _ \ / _ \ \ /\ / / _ \| '__| |/ /
 | |\  | (_) | | |  | | | (_| | | | | | |  __/\ V  V / (_) | |  |   < 
 |_| \_|\___/  |_|  |_|  \__,_|_| |_| |_|\___| \_/\_/ \___/|_|  |_|\_\

This is just for study case, use by your own risk!!!

TL;DR

Run ./nofw init to build the application 🚀

API Architecture

I used the follow packages to compose the API:

For dev:

Running the application

I create a utility tool for command line, run the application simply run ./nofw init. Run ./nofw to see another options.

Documentation

The application ships with Swagger docs, go to ttp://localhost:4000 to see. Some endpoints require authentication, go to the http://localhost:4000/#/auth/post_auth and send the request to get the JWT token, now click in button Authorize in right superior corner, and put the token there.

Quality Assurance

The application already ships with a simple container of SonarQube, to see the application stats, first you need run the Unit tests in order to generate the coverage, simply run ./nofw tests, after the tests finish, run ./nofw sonar-runner, now go to the http://localhost:9000/dashboard?id=App.