Git Product home page Git Product logo

poliglot's Introduction

screen shot 2018-03-27 at 19 16 13

Poliglot

I'm using a free host on Heroku meaning it may take a couple of minutes to load initially.

Poliglot is a MERN stack application which allows users to instant message eachother in any language!

It's able to translate messages in a chat to whatever language the user selects when creating an account. Meaning that one person can be writing English and the other writing French and both will be able to have a conversation with no hassle.

screen shot 2018-03-27 at 18 22 34

I built this app in my spare time over a week to get more familiar with React.js and API unit testing with Mocha and Chai.

Overview

The app uses Node, Express, Mongodb and Mongoose to build an API to handle the data for users, chats and messages. This is paired with a React front-end to consume this API. I am using the Random User Generator API to seed users into the database, so there should always be someone to chat to!

I use a library called socket.io which enables real-time communication meaning that users will recieve their incoming messages instantantly. Before this message is displayed to the user, the text will be sent through the google translate api converting it into whatever lanage the reciever has specified, Which will be saved to the API.

There is functionality to handle authentication, hashing passwords with bcrypt and JSON web tokens for passing current user data to the front-end in a secure way and restricting access to certain pages. And image uploading for profile picutres with Filestack.

I also use a variety of other packages as seen in the package.json.

The app is fully responsive to browsers and most phones however, I do indend on making a native version using React Native when I have time.

Testing

There are 56 unit tests covering majority of the API functionality. I'm using Istanbul for test coverage.

screen shot 2018-03-27 at 18 49 38

Screenshots

screen shot 2018-03-27 at 19 07 36

screen shot 2018-03-27 at 19 06 58

Instructions

For those intrested in forking this repo.

// install dependencies
yarn install

// start API server
yarn start:server

// start client server
yarn start:client

// ensure mongodb is running
mongod

// run tests
yarn test

All other command scripts can be seen in the package.json.

Future

There are still a bunch of features that I would like to add whenever I get some time.

  • Add ability to delete a chat.
  • Notify user when they recieve a new message.
  • Show badge next to chat with how many unread messages they have
  • Ability to alter the language of the entire app to meet the current user's preference.

poliglot's People

Contributors

rgowan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.