REST API for Real-time Audio Podcast platform using Socket.io and WebRTC.
https://documenter.getpostman.com/view/17116314/2s93CUGVHz
The application uses multiple Restful APIs to perform various actions. APIs working in this application are listed as follows:
API | Request | Operation |
---|---|---|
/send-otp |
POST |
Generate OTP and send it via phone or email |
/verify-otp |
POST |
Verify OTP and register the user |
/activate |
POST |
Activate the account |
/refresh |
GET |
Refresh the access token |
/logout |
POST |
Logout user |
/rooms |
GET |
Get all the public rooms |
/rooms |
POST |
Create new room |
/rooms/:id |
GET |
Get room with {id} |
/rooms/:id |
PUT |
Update room with {id} |
/rooms/:id |
DELETE |
Delete room with {id} |
/rooms/my-rooms |
GET |
Get rooms of current logged-in user |
- Clone the project from github. Change "myproject" to your project name.
git clone https://github.com/bskumawat09/audcast-api.git
- Download repository
- Uncompress to your desired directory
- Move to the directory where your project is stored.
- Run the follwoing command.
npm install
- You will find a file named
.env.example
on root directory of project. - Create a new file by copying and pasting the file and then renaming it to just
.env
cp .env.example .env
- Change the values of the file to your environment. Helpful comments added to
.env.example
file to understand the constants.
node app.js
You will know server is running by checking the output of the command node app.js
Listening on port: 5000
Database connected
Press CTRL+C