Git Product home page Git Product logo

chat-app's Introduction

Vue 3 - Realtime Chat App

Project setup

Make sure you have node and npm installed. You can install both here. Download the LTS version because it will be the most stable

npm install

This will install all the node modules needed for development.

If you try to skip to the next step, it probably won't work because there is an issue that happens with tailwind and the post processing of css. The issue can be found here

Luckily, so can the fix:

npm install tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9

And just to be safe, also run the following:

npm audit fix

This should fix any vulnerabilities with dependencies in the application

Compiles and hot-reloads for development

Now you're ready to run the application! The application will be served on your localhost on port 8080 here

npm run serve

Files

All major code files are in src

  • firebase.js contains all the firebase code and coordinates with components/Chat.vue to send messages to the firestore realtime database. These two files contain the major code for the application.

Executables

There are 2 executables that are availble in the src folder. One is a bash file for Mac and Linux. The other is a batch file for Windows.

They pretty much run the commands in the Project Setup part of this README. THEY DO NOT INSTALL NODE FOR YOU. If you do not have node you will still have to install it yourself.

To run the executables do the following in a terminal in the src folder:

sh linux+mac_executable.sh on Mac or Linux

OR open up command prompt in Windows and make sure you Run as Administrator, then type the command:

windows_executable.bat in Windows

chat-app's People

Contributors

kmontalvo3 avatar jsbroks 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.