GithubHelp home page GithubHelp logo

hackingbeauty / webrtc-base Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 490 KB

Base app to experiment with WebRTC ideas and prototypes.

License: MIT License

JavaScript 97.38% Shell 0.05% CSS 2.56%

webrtc-base's Introduction

  • start server command:

    bin/devserver

  • start redis command:

    redis-server

  • start mongodb command:

    mongod

  • start mongo console:

    mongo

  • create a mongo collection:

    db.createCollection('collection name')

  • use a specific database in mongo:

    use chat-salon; (or other database/collection name)

  • show all mongodb collections:

    db.getCollectionNames()

  • to start in production mode:

    NODE_ENV=production node app.js

  • use curl to test api calls

    curl http://localhost:3000/user/create -d {} (the -d option is for a post...ur passing a blank object as post data)

  • to run all tests:

    npm test


REDIS

  • to connect with redis on the server, execute this command

    redis-cli -h "db_url" -p 6379 -a "db_user"

  • "keys *" - will show you all keys in your redis dataset


MONGODB

  • show dbs - show all databases

  • use <db_name> - use a database

  • db.getCollectionNames() - show all collections in a database

  • db.<collection_name>.find() - show all records for a given collection

  • connect to a remote mongodb instance:

    mongo "db_address"/"database_id" -u "user_name" -p "pass"

  • if connecting to the remote mongo instance, apparently "show dbs doesn't work"...use "show collections"

  • dropping a database:

    • use ;
    • db.dropDatabase();

WebRTC Tutorials

webrtc-base's People

Contributors

hackingbeauty avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

garretts

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.