Coder Social home page Coder Social logo

ibogdan94 / backend-sample-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 42.0 145 KB

A simple express backend application to demonstrate the usage of Dyte APIs. This backend is required to be hosted to work in collaboration with the web and mobile sample apps.

Home Page: https://dyte-sample.herokuapp.com/

License: Other

Shell 1.69% TypeScript 98.31%

backend-sample-app's Introduction

Logo

backend-sample-app by dyte

A NodeJS backend to interact with the Dyte REST API
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

This is a sample backend application which interacts with the REST API.

Built With

Getting Started

Deploy directly to heroku using this button!

Deploy

To get a local copy up and running follow these simple steps.

Prerequisites

  • npm
  • NodeJS

Installation

  1. Clone the repo
git clone https://github.com/dyte-in/backend-sample-app.git
  1. Install NPM packages
npm install
  1. Add a .env on the root of the repo, with the following variables:
PORT=3001
DYTE_API_BASE=https://api.cluster.dyte.in/v1
DYTE_API_KEY=<Your dyte api key>
DYTE_ORG_ID=<Your dyte org id>
  1. To run the backend in dev mode (hot reload on changes), run:
npm run dev

To run the backend in production mode, run

npm run build
npm start

Usage

The backend exposes an express API server with the following routes:

Route Method JSON Body Params Description
/meeting/create POST {
title: string,
presetName: string,
authorization: {
waitingRoom: boolean,
closed: boolean
}
}
Create a meeting. For more details, see
https://docs.dyte.io/api/#/operations/create_meeting
/participant/create POST {
meetingId: string,
clientSpecificId: string,
userDetails: {
name: string,
picture: string
},
presetName?: string,
roleName?: string,
}

Note: Pass only one of presetName
or roleName, NOT both.
Create a participant for a meeting. For more details, see
https://docs.dyte.io/api/#/operations/add_participant
/meetings GET N/A Get the list of all meetings in the organization. For more
details, see
https://docs.dyte.io/api/#/operations/get_all_meetings
/preset/get GET N/A Get the list of all the presets in the organization. For
more details, see
https://docs.dyte.io/api/#/operations/get_all_presets

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. Sincere thanks to all our contributors. Thank you, contributors!

You are requested to follow the contribution guidelines specified in CONTRIBUTING.md and code of conduct at CODE_OF_CONDUCT.md while contributing to the project 😄.

Support

Contributions, issues, and feature requests are welcome! Give a ⭐️ if you like this project!

License

Distributed under the Apache License, Version 2.0. See LICENSE for more information.

About

backend-sample-app is created & maintained by Dyte, Inc. You can find us on Twitter - @dyte_io or write to us at dev [at] dyte.io. The names and logos for Dyte are trademarks of Dyte, Inc. We love open source software! See our other projects and our products.

backend-sample-app's People

Watchers

 avatar

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.