Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amos-kibet/mysic-api
A music player API for mysic, built with NodeJS & MongoDB. Features include authentication & streaming music.
https://github.com/amos-kibet/mysic-api
mongodb nodejs
Last synced: 2 months ago
JSON representation
A music player API for mysic, built with NodeJS & MongoDB. Features include authentication & streaming music.
- Host: GitHub
- URL: https://github.com/amos-kibet/mysic-api
- Owner: amos-kibet
- License: mit
- Created: 2022-07-23T10:09:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-02T19:45:16.000Z (over 2 years ago)
- Last Synced: 2023-03-08T14:07:03.938Z (almost 2 years ago)
- Topics: mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.73 MB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# mysic API
## Get all songs
```
https://api-ibambe.onrender.com/api/all/songs
```## Features
1. User can sign up
2. User can sign in
3. User can stream music## API endpoints
1. `POST /api/signup`: Creates a new user
2. `POST /api/signin`: Logs in a user
3. `GET /api/all/songs`: Gets songs as JSON file## Body Payload Specification
Signup expects
```js
{
username: string,
email: string,
password: string
}
```Signin expects
```js
{
email: string,
password: string
}
```## Tools
- NodeJS/Express: Server
- MongoDB: Storage
- JWT: Token based authentication
- bcryptjs: Password security
- winston: Logs## Available scripts
- `start`: Starts the server with node
- `start:dev`: Starts the server in watch mode## Contribution Guidelines 🏗
Want to add your inputs to the repo? We invite you to contribute.
Head to [CONTRIBUTING.md](https://github.com/amos-kibet/mysic-api/blob/main/CONTRIBUTING.md) to start contributing.