-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from PierreBougon/develop
Release v1.0
- Loading branch information
Showing
23 changed files
with
1,116 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<p align="center"> | ||
<img src="documentation/images/bym.png"> | ||
</p> | ||
|
||
|
||
# Bym API | ||
|
||
|
||
Bym is an Epitech EIP project that aim to make the playlists sharable and collaborative | ||
|
||
|
||
|
||
## Project state | ||
|
||
**Master :** [](https://travis-ci.com/PierreBougon/Bym-BackEnd) - **Develop :** [](https://travis-ci.com/PierreBougon/Bym-BackEnd) | ||
|
||
## Getting Started | ||
|
||
|
||
### Prerequisites | ||
|
||
To start this server you need some dependencies use | ||
```shell script | ||
govendor install +local | ||
``` | ||
|
||
### Installing | ||
|
||
To try out Bym you should install Bym mobile application from the Play Store or AppStore. | ||
|
||
|
||
## Running the tests | ||
|
||
Use `go test` to run the tests, please if you want to contribute be sure to write tests as well and make sure the are passing | ||
|
||
### Break down into end to end tests | ||
|
||
Actually only the models are tested to guarantee a 100% sure solution when it comes to data | ||
|
||
|
||
### And coding style | ||
|
||
Coding style is pretty free on this project I review every Pull Requests to be sure the code has enough quality to be merged, you should follow basic guidelines about clean code | ||
|
||
## Deployment | ||
|
||
Every deployments are automatized with heroku, when a Pull Request is merge on Develop or Master and if the Travis CI assure 100% of tests passing | ||
|
||
___ | ||
|
||
* **Production URL :** https://bym-backend-prod.herokuapp.com/ | ||
|
||
* **Development URL :** https://bym-back-end.herokuapp.com/ | ||
|
||
|
||
|
||
## Contributing | ||
|
||
Please feel free to open a Pull Request if you think you have a good piece of code that could be useful on production. You can also open issues to asks or discuss about anything in this project. | ||
|
||
|
||
## Authors | ||
|
||
* **Pierre Bougon** - *Owner developer* | ||
* **Mathis Guilbon** - *Developer* | ||
|
||
See also the list of [contributors](https://github.com/PierreBougon/Bym-BackEnd/contributors) who participated in this project. | ||
|
||
## License | ||
|
||
This project is licensed under the GNU General Public License v3.0 - see the [LICENSE.md](LICENSE.md) file for details | ||
|
||
## Acknowledgments | ||
|
||
* Bym Team to made this project a successful EIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
package controllers | ||
|
||
import ( | ||
"github.com/PierreBougon/Bym-BackEnd/websocket_communication" | ||
"fmt" | ||
"github.com/PierreBougon/Bym-BackEnd/websocket" | ||
"net/http" | ||
) | ||
|
||
var ConnectWebSocket = func(w http.ResponseWriter, r *http.Request) { | ||
print("Trying to establish a connection") | ||
var wsPool *websocket_communication.WSPool | ||
wsPool = websocket_communication.GetWSPool() | ||
fmt.Println("Trying to establish a connection") | ||
fmt.Println(r.Header.Get("Sec-WebSocket-Protocol")) //Grab the token from the header | ||
|
||
var wsPool *websocket.WSPool | ||
wsPool = websocket.GetWSPool() | ||
wsPool.CreateWebSocket(w, r) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.