Coder Social home page Coder Social logo

blockcovid-web's Introduction

Build status codecov code style: prettier

BlockCOVID-web

Description

Web module for the project BlockCOVID. This module provides a web interface for the administrator of a running instance of the server module.

Usage

Prerequisites

This module requires an instance of the server module running. By default the client tries to redirect all API requests to localhost:8091, if you have an instance of the server module running somewhere else you should change the default proxy behaviour in nginx.conf, for example

location /api/ {
    proxy_pass http://my.api.server:8091;
}

redirects all API requests to my.api.server:8091

The latest version of npm is also necessary in order to test, build and run the server, a detailed guide on how to install it can be found here.

Building

The following process builds a static version of the server and deploys it through a docker container running a nginx web server. API redirection is handled through nginx, so configure it as described in the previous section. The steps to accomplish in order to run the application are

# Install the dependencies
npm install
# Build the static bundle
npm run build
# build and run the container
docker-compose up --build -d

A daemonized container will be created, running the application.

Development environment

npm run dev

Builds the bundled application for a development environment, do this instead of npm run build in the building process to run the development environment.

Dynamic development

npm start

Starts a serve server to test the application, this solution allows a dynamic recompiling of the application after every change.

Contributing

We adopt a Gitflow workflow. So in order to contribute to the application the steps are:

  • start from develop branch
  • git flow feature start [faeture name] (alternatively git checkout -b feature/[feature name])
  • implement the new feature and the corresponding tests
  • commit your changes
  • git flow feature publish [feature name] (alternatively git push -u origin feature/[feature name])
  • open a pull request describing your changes and addressing issues if necessary eventually an administrator will review your work and merge it in the develop branch.

pre-commit hook

Builds will fail if the code is not compliant with the prettier formatting. Therefore add this hook to git that prevents you from committing anything that is not correctly formatted

cp pre-commit.sh .git/hooks/pre-commit

text can be formatted with

npm run formatApply

blockcovid-web's People

Contributors

dkokollari avatar mitch97 avatar lmodica avatar lusergit avatar nr3d avatar francescopecile avatar

Watchers

James Cloos avatar

blockcovid-web's Issues

Room modification

An authenticated administrator should be able to edit the information about a room

Room deletion

An authenticated administrator should be able to delete a room from the system

Room creation

By providing the required api informations (as specified by the documentation) an authenticated administrator should be able to create a new room

Search bar

for everything the admin should be able to search for what he's looking for (for example a specific reservation or room or desk or account)

Use italian (+english) for UI

Use the Italian language for the graphic interface. The transition to the English language is foreseen where possible.

Limit displayed users number

When there are more than 200c.a. users the application starts to slow down the whole browser, limit the amount of accounts displayed on the same page

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.