Skip to content

A nodejs and express based server for OpenSpace WebRTC

License

Notifications You must be signed in to change notification settings

OpenSpace/Backend-WebRTC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Back-end WebRTC Express Application

This documentation will walk you through the steps to run Openspace Express application with Postgres and PostGIS.

Prerequisites

Before getting started, make sure you have the following installed on your system:

Step 1: Clone the repository

Clone the repository:

git clone https://github.com/OpenSpace/Backend-WebRTC.git

Step 2: Install dependencies

Navigate to the project directory and install the required dependencies using npm.

cd Backend-WebRTC
npm install

Step 3: Set up the database

Create a new PostgreSQL database Follow this medium article to setup postgres and dbeaver in windows: https://medium.com/@zum.hatice/how-to-create-a-postgresql-db-and-connect-in-windows-b26eaa48c7fb

Make sure you have performed below command while setting up postgres and dbeaver.

createdb openspace

Step 4: Configure the database connection

Open the .env file in the project directory and update the database connection details as required.

DB_HOST=localhost
DB_PORT=5432
DB_NAME='openspace'
DB_USER='postgres'
DB_PASSWORD='password'

Step 5: Seed the tables and configs

node .\seed.js

Step 6: Start the application

Start the Express application using the following command:

npm start

Step 6: Test the application

Open the postman (or any API management tool) and access APIs at http://localhost:5000, where 5000 is the default port specified in the backend express application.

For more help, reach out to our developers Abhay Garg, Sonia Castelo, Gene Payne on Slack.

To-Do

user analytics, server analytics

About

A nodejs and express based server for OpenSpace WebRTC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published