Coder Social home page Coder Social logo

webmessenger's Introduction

Introduction

Веб-приложение для просмотра активности чата. Пользователю доступны просмотр сообщений за последние 2 часа, участие в переписке путем добавления сообщений, а также просмотр сообщений за определенный период. Проект реализован с помощью ASP.NET Core 2.1, Angular ^5.2.0.

Getting Started

  1. Установить NodeJS v8.9.4.
  2. Выполнить git clone для скачивания исходных кодов проекта.

Build and Test

Открыть WebMessenger.sln в Visual Studio. Перейти в папку <корень проекта>/app/wwwroot/app-client/ и выполнить npm i для восстановления зависимостей. Для сборки клиентской части выполнить npm run-script build. Эта команда создаст каталог cо статическими веб-файлами. При отсутствии ошибок возможен запуск проекта. Также необходимо задать настройки подключения к БД в конфигурационном файле appsettings.json.

Для тестирования клиентской части необходимо выполнить npm run-script test. Для тестирования серверной части необходимо загрузить проект из каталога app.Tests.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

webmessenger's People

Contributors

vdmkrchkn avatar

Watchers

 avatar

webmessenger's Issues

Не запускаются тесты karma из скрипта test

ng test
...
 10% building modules 1/1 modules 0 active
26 08 2020 18:29:07.823:INFO [karma]: Karma v2.0.5 server started at http://0.0.0.0:4201/
26 08 2020 18:29:07.827:INFO [launcher]: Launching browser Chrome with unlimited concurrency
26 08 2020 18:29:07.848:INFO [launcher]: Starting browser Chrome
26 08 2020 18:29:09.353:ERROR [karma]: { inspect: [Function: inspect] }

Ошибка при добавлении сообщения

ERROR TypeError: Cannot read property 'push' of null
    at Gr.onAdded (main.e0241499d4bf4ae4edbc.bundle.js:formatted:11316)
    at Object.handleEvent (main.e0241499d4bf4ae4edbc.bundle.js:formatted:11373)
    at Object.handleEvent (main.e0241499d4bf4ae4edbc.bundle.js:formatted:4413)
    at Object.handleEvent (main.e0241499d4bf4ae4edbc.bundle.js:formatted:5485)
    at Ln (main.e0241499d4bf4ae4edbc.bundle.js:formatted:3040)
    at main.e0241499d4bf4ae4edbc.bundle.js:formatted:4045
    at l.r [as _next] (main.e0241499d4bf4ae4edbc.bundle.js:formatted:1561)
    at l.__tryOrUnsub (main.e0241499d4bf4ae4edbc.bundle.js:formatted:144)
    at l.next (main.e0241499d4bf4ae4edbc.bundle.js:formatted:110)
    at a._next (main.e0241499d4bf4ae4edbc.bundle.js:formatted:67)

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.