GithubHelp home page GithubHelp logo

darkredz / zeko-restapi-examples Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 252 KB

Example project using Zeko Rest API framework

License: Apache License 2.0

Shell 1.41% Kotlin 98.59%
zeko zeko-restapi zeko-data-mapper zeko-sql-builder vertx vertx-web microservice rest-api mvc-framework kotlin-coroutines

zeko-restapi-examples's Introduction

Zeko Rest API Example Project

Example project in Kotlin language using Zeko Rest API framework

Getting Started

Clone the project, cd to the folder.

Run the shell script to start the RESTful backend in development mode(hot reload enabled)

./run.sh

Open browser and go to http://localhost:9999

Now, you should be able to test your API endpoints now with browser, Postman or tool of your choice

After running app is compiled, you will also find swagger.json under api-doc folder. Just import it into Postman and start playing around

To build a docker image execute the shell script which will build the image to your docker daemon

./build-docker-image.sh

Project Creator

Zeko Rest API framework has built-in project creator feature since 1.0.7.

Try to create a new project barebone by calling the endpoint /project/create in this project.

Simply send a post/get request to the endpoint using Postman, browser or wget and download the project zip file.

alt Zeko Project Creator

Brief Explanation

You should import the database zeko_test.sql into your MySQL server for the demo to work.

This projects uses Koin for dependency injection.

BootstrapVerticle is the main entry file and all dependencies needed are created here. Jackson is set to use snake case naming strategy when encoding JSON. It is also set to convert date objects to ISO date time string.

Example usage of SendGrid mail service can be found under user registration, which sends email in a circuit breaker strategy. You can uncomment/comment the code in the bootstrap class to switch to Mandrill

RestApiVerticle contains all the routes and cronjobs of the project. You will find error handler, JWT auth and token refresh here.

SQL queries are executed with Jasync async MySQL driver, however you can change to use Hikari-CP or Vert.x JDBC client in DB class

zeko-restapi-examples's People

Contributors

darkredz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dzmitrymarachou

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.