A story creator updated in real time as people submit words one by one. Created in the MEAN stack with sockets. Includes simple admin control to clear the story.
Creating a new word post! Sending a post request to our server while also emitting through sockets:
create(word: Word){
const headers = new Headers({ "Content-Type": "application/json" })
const options = new RequestOptions({ headers: headers })
this.http.post("/create", word, options)
.subscribe(response => this.get_words())
this.sendMessage(word.word, word.creator, new Date());
}
sendMessage(message, message2, message3){
this.socket.emit('add-message', message, message2, message3);
}
- MEAN - Stack used. Comprised of MongoDB, Express, Angular 4, & NodeJS.
- Angular-CLI - Template construction.
- Socket.io - Sockets for real time story updates.
- Peter Amin Felton - Project Development - petfelt.
This project is licensed under the MIT License.
- A Couple Of Friends - For getting a kick out of this project.
- My Father - For consistent encouragement.