Giter Club home page Giter Club logo

nuxt-chat-app's Introduction

Chat Application Frontend

An frontend of chat application built using nuxt.js

Build Setup

# install dependencies
$ npm install # Or yarn install

# copy and setup .env
cp .env.example .env

# serve with hot reload at localhost:3000
# service worker is disabled in dev
$ npm run dev

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

nuxt-chat-app's People

Contributors

nikkanetiya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuxt-chat-app's Issues

Hi, i get problem about cors

I try run nuxt-chat-app and nuxt-chat-server then i get this error from client.
Please help me.

image

server i get this response

{ "res": { "statusCode": 200, "body": "POST" }, "req": { "url": "/api/auth/login", "headers": { "host": "localhost:3002", "connection": "keep-alive", "sec-fetch-mode": "cors", "access-control-request-method": "POST", "origin": "http://localhost:3000", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", "access-control-request-headers": "content-type", "accept": "*/*", "sec-fetch-site": "same-site", "referer": "http://localhost:3000/login", "accept-encoding": "gzip, deflate, br", "accept-language": "vi-VN,vi;q=0.9,ja;q=0.8,en;q=0.7" }, "method": "OPTIONS", "httpVersion": "1.1", "originalUrl": "/api/auth/login", "query": {} }, "responseTime": 1, "level": "info", "message": "HTTP OPTIONS /api/auth/login 200 1ms" } OPTIONS /api/auth/login 200 0.444 ms - 4

Nuxt error when compiling

ERROR Nuxt error

TypeError: Cannot read property 'push' of undefined

  • index.js:40 ModuleContainer.module.exports
    [nuxt-chat-app]/[@nuxtjs]/auth/lib/module/index.js:40:32

  • module.js:162
    [nuxt-chat-app]/[nuxt]/lib/core/module.js:162:30

  • new Promise

  • module.js:146 ModuleContainer.addModule

    [nuxt-chat-app]/[nuxt]/lib/core/module.js:146:12

  • utils.js:96
    [nuxt-chat-app]/[nuxt]/lib/common/utils.js:96:43

  • module.js:19 async ModuleContainer.ready
    [nuxt-chat-app]/[nuxt]/lib/core/module.js:19:5

  • nuxt.js:60 async Nuxt.ready
    [nuxt-chat-app]/[nuxt]/lib/core/nuxt.js:60:5

  • builder.js:132 async Builder.build
    [nuxt-chat-app]/[nuxt]/lib/builder/builder.js:132:5

Demo failing to register

Hi!
Very inspiring project. Thank you for sharing it.
I just would like to let you know that the online working app is failing. The errors are:

The resource https://chat.binbytes.com/_nuxt/manifest.7b96659a9338ba9f2f70.js was 
preloaded using link preload but not used within a few seconds from the window's load 
event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

and

GET https://chat-server.binbytes.com/socket.io/?EIO=3&transport=polling&t=MLiRfEr 0 ()

I'm here to learn from your code, so I unfortunately I can't help figuring out whats happening.

best regards,
Gil

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.