GithubHelp home page GithubHelp logo

waseembarcha / wertik-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uconnect-technologies/wertik-js

0.0 1.0 1.0 3.22 MB

๐Ÿ’ช A library that powers your app with GraphQL + Rest API

Home Page: http://www.wapgee.com/wertik

License: MIT License

TypeScript 99.96% JavaScript 0.04%

wertik-js's Introduction

Wertik JS

Wertik is a ๐Ÿ’ช GraphQL + Rest API framework to build servers that gives you support for GraphQL, Rest Api, Emailing, Storage, Sockets and Cron Jobs feature.

Installation

To install you can use npm or yarn, To install with npm:


npm install --save wertik-js

Install with yarn


yarn add wertik-js --dev

Setting up server

Lets setup an app:

import { connectDatabase, serve } from "wertik-js";

import configuration from "./path/to/your/configuration";

connectDatabase(configuration.database)
  .then((databaseInstance) => {
    configuration.databaseInstance = databaseInstance;
    serve(configuration).then((wertikApp: any) => {
      wertikApp.database.sync();
    });
  })
  .catch((e) => {
    console.log(`Error connecting with database`);
    console.log(e);
  });

If everything goes fine, you will see:

โœ” [Wertik-js]: Socket.IO server running at http://localhost:5000
โœ” [Wertik-js]: Rest API server started at http://localhost:5000
โœ” [Wertik-js]: GraphQL Voyager running at http://localhost:5000/graphql-voyager
โœ” [Wertik-js]: GraphQL Server started at http://localhost:5000/graphql
โœ” [Wertik-js]: GraphQL Subscriptions are running at ws://localhost:5000/subscriptions
โœ” [Wertik-js]: Database: Successfully Connected!

Note: 5000 is the default port

The above code example is taken from: Dev Server Example

Further Steps

Now you have installed weritk-js in your app, now next step is to get familiar with the configuration to use. Let's go with the documentation flow:

  1. Configuration
  2. Database
  3. Rest Api
  4. GraphQL
  5. Mailer
  6. Sockets
  7. Storage
  8. Custom Modules
  9. Cron Jobs

The documentation is hosted at http://wapgee.com/wertik-js.

Versioning

Wertik-js follows semantic versioning (semver) principles. The version can be look like this, X.Y.Z,

  • Z When fixing bug we relase with chaning Z. For example: 1.2.1 to 1.2.2
  • Y When adding feature we release with changing Y, For example: 1.2.1 to 1.3.1
  • Z When adding breaking changes we made this release. For example: 1.2.1 to 2.2.1

Contributing

Pull Requests are welcome. If you think something is missing or needs to changed. Please open a pull request or new issue.

License

MIT

wertik-js's People

Contributors

ilyaskarim avatar waseembarcha avatar pervaizdattoo avatar ilyas-wm4d avatar dependabot[bot] avatar qasim149 avatar arshad03490 avatar

Watchers

James Cloos avatar

Forkers

nicosql

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.