Coder Social home page Coder Social logo

comment-app's Introduction

Simple Chat app

How to run the app

  • Unzip folder or clone the repository

Docker

# in docker bash
$ cd <project dir>
$ docker build . 

# get docker latest image id normally appear at the top of the list
$ cocker images

#once get images id
$ docker run -d -p 3000:3000 <image-id>

#Navigate to "http://localhost:3000"

#in case "http://localhost:3000" does not work, get ip of you virtualbox
$ docker-machine ls  

#the virtualbox ip will appear something like "tcp://192.168.99.100:2376"
#navigate to 192.168.99.100:3000

Or

Locally

# install dependencies locally
$ npm install

# build for production and launch server
$ npm run build
$ npm start

# Navigate to "http://localhost:3000"

What I use in this project

introduction

All technology is use here base on my previous experience and when I do training all junior developer. The project will focus on the tech which is well documented and structure. To avoid a lot of confusion and control all dev to work in the same direction.

js - nuxt.js

Nuxt js is a framework build for vue.js where they are nice folder directory structure and flexible so it make powerful app more simply.

css - tailwind

Tailwind is utility base css and components friendly. Compare to bootstrap when creating apps, Tailwind make styling development a lot faster and without creating more duplication of custom styles as it is utility base. good for complex user interface and faster when we do debugging. Also it allow us to build unique interface without bootstrap like page.

database - firebase

Firebase is real time NoSQL cloud database. Data is stored as JSON. I use in this app for how simple of the app and there is no database relationship needed.

##Testing

cypress is very easy to setup and can replace mocha and chai so we install only one time. It has clear user interface when the test run and make a snapshot and record for the test.

$ npm run test

# once the interface appear click in integration/interface.spec.js 

Testing now following (BDD) normally comes from user requirement and business wise. In this project is very simple now base on behaviour the app does at the moment.

What I can improve

  • component transition to create better user experience.
  • In the chat box once scroll up to the top. scroll down button appear so when the user click on. The chat box will scroll down to bottom to see the latest comment.
  • validation on name input and comment input. e.g. they can not be empty if so uer not allow to click on send or submit button.

comment-app's People

Contributors

nathiboat avatar

Watchers

James Cloos 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.