All Projects → crybapp → api

crybapp / api

Licence: MIT license
Core service used to handle events from clients

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to api

ProtocolServiceKit
iOS组件通信中间件(Protocol Service),Adapter Swift/Objective-C
Stars: ✭ 139 (+286.11%)
Mutual labels:  service
backup-repository
Backup storage for E2E GPG-encrypted files, with multi-user, quotas, versioning, using a object storage (S3/Min.io/GCS etc.) and deployed on Kubernetes or standalone.
Stars: ✭ 21 (-41.67%)
Mutual labels:  service
ex aws sns
No description or website provided.
Stars: ✭ 19 (-47.22%)
Mutual labels:  service
Molder
BDD steps libraries for test automation databases, web services, and WebUI
Stars: ✭ 16 (-55.56%)
Mutual labels:  service
hedera-hts-demo
This is a demonstration UI for the Hedera Token Service. Written in JavaScript and Vue.JS
Stars: ✭ 66 (+83.33%)
Mutual labels:  service
Coyote
Framework providing operating system abstractions and a range of shared networking (RDMA, TCP/IP) and memory services to common modern heterogeneous platforms.
Stars: ✭ 80 (+122.22%)
Mutual labels:  service
SignTools-CI
Sign iOS apps on demand using CI. Part of: https://github.com/SignTools/SignTools
Stars: ✭ 145 (+302.78%)
Mutual labels:  service
senlin
Clustering service for managing homogeneous objects in OpenStack. Mirror of code maintained at opendev.org.
Stars: ✭ 43 (+19.44%)
Mutual labels:  service
ex aws rekognition
Package to use AWS Rekognition service
Stars: ✭ 21 (-41.67%)
Mutual labels:  service
FactoryOrchestrator
A cross-platform system service which provides a simple way to run and manage factory line validation, developer inner-loop, diagnostics, and fault analysis workflows.
Stars: ✭ 36 (+0%)
Mutual labels:  service
ssdp-client
The most lightweight asynchronous Java SSDP (Simple Service Discovery Protocol) Client
Stars: ✭ 46 (+27.78%)
Mutual labels:  service
ServiceCommander-IBMi
Service Commander for IBM i
Stars: ✭ 29 (-19.44%)
Mutual labels:  service
angular-odata-es5
OData Service for Angular.io (es5 version)
Stars: ✭ 45 (+25%)
Mutual labels:  service
SupportEmail
Pre-populates emails with support information in iOS/iPadOS apps
Stars: ✭ 20 (-44.44%)
Mutual labels:  service
service-tree
[ABANDONED] A tree that stores services in its node for a given key, and allows traversing them.
Stars: ✭ 33 (-8.33%)
Mutual labels:  service
SyncBinder
Android Sync Binder
Stars: ✭ 30 (-16.67%)
Mutual labels:  service
docs
PrestaShop technical documentation
Stars: ✭ 102 (+183.33%)
Mutual labels:  service
easemesh
A service mesh implementation for connecting, control, and observe services in spring-cloud.
Stars: ✭ 454 (+1161.11%)
Mutual labels:  service
airports-db
Public airports database API service based on GitHub
Stars: ✭ 17 (-52.78%)
Mutual labels:  service
airad
Beego based Restful API service
Stars: ✭ 63 (+75%)
Mutual labels:  service

Cryb OSS

@cryb/api - Core services

GitHub contributors License Patreon Donate Chat on Discord

Docs

Info

@cryb/api is the core service used to handle requests from clients over REST and WebSocket.

Events such as Room creation, user authentication and requests to @cryb/portals to create VM instances are sent from @cryb/api.

Status

@cryb/api has been actively developed internally since August 2019, and is now open source as of October 2019.

Codebase

The codebase for @cryb/api is written in JavaScript, utilising TypeScript and Node.js. Express.js is used for our REST API, while the WebSocket API uses the ws module.

MongoDB is used as the primary database, while Redis is used for cache and PUB/SUB.

Code Style

We ask that you follow our code style guidelines when contributing to this repository.

We use ESLint in order to lint our code. Run yarn lint before committing any code to ensure it's clean.

Note: while we have most rules covered in our .eslintrc.js config, it's good practice to familarise yourself with our code style guidelines.

Folder Structure

cryb/api/
└──┐ src # The core source code
   ├── config # Config files for Redis, Passport, etc
   ├── controllers # Our REST route controller files
   ├── drivers # Methods used to talk to other microservices, such as @cryb/portals
   ├── models # Models for our a data types, such as users and rooms
   ├── schemas # Mongoose schema files
   ├── server # Our Express.js setup
   ├── services # Abstractions for Oauth2, etc
   └── utils # Helper methods

First time setup

First, clone the @cryb/api repository locally:

git clone https://github.com/crybapp/api.git

Installation

The following services need to be installed for @cryb/api to function:

  • MongoDB
  • Redis

We recommend that you run the following services alongside @cryb/api, but it's not required.

  • @cryb/portals
  • @cryb/aperture

You also need to install the required dependencies by running yarn.

Ensure that .env.example is either copied and renamed to .env, or is simply renamed to .env.

In this file, you'll need some values. Documentation is available in the .env.example file.

Running the app locally

Background Services

Make sure that you have installed MongoDB and Redis, and they are both running locally on port 27017 and 6379 respectively.

The command to start MongoDB is mongod, and the command to start Redis is redis-server. Most Linux distributions will have those packaged, and will start automatically with your system.

If you're developing a feature that requires the VM infrastructure, then make sure @cryb/portals and @cryb/aperture are running.

Starting @cryb/api

To run @cryb/api in development mode, run yarn dev.

It is recommended that in production you run yarn build, then yarn start.

Questions / Issues

If you have an issues with @cryb/api, please either open a GitHub issue, contact a maintainer or join the Cryb Discord Server and ask in #tech-support.

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].