项目作者: IT2901-SINTEF01

项目描述 :
Open data visualisation platform.
高级语言: C#
项目地址: git://github.com/IT2901-SINTEF01/backend.git
创建时间: 2021-02-06T14:47:53Z
项目社区:https://github.com/IT2901-SINTEF01/backend

开源协议:Apache License 2.0

下载


Open Data Visualisation Platform – Backend

.NET
Open issues
Apache 2 License
Latest Release
codecov
Codacy Badge

SINTEF

This repository contains the backend for the “Open Data Visualisation Platform” developed in collaboration with SINTEF. You may find the frontend here. Providing a GraphQL interface, it will supply the frontend with data from various open data sources as well as attached metadata for the data to simplify the visualisation of the raw data. Consult the releases page to get a local, stable copy of the service.

Overview

The backend is built on ASP.Net Core with GraphQL.Server and written in C#.
Refer to the wiki for more information such as architecture and structure.

Quick setup with Docker

Refer to the wiki page for more information;

You can run the project in production mode (making actual requests to the APIs) with.

This pulls the latest stable build (released with a tag):

  1. docker pull ghcr.io/it2901-sintef01/backend:latest
  2. docker run -e DATABASE__MONGODB_ATLAS__URL=... -p 5000:80 ghcr.io/it2901-sintef01/backend:latest

Development

Refer to the .editorconfig file for code style setup.

The initial development team use Rider for development.

If you wish to use a MongoDB server, add it’s URI to an environment variable named:

  1. DATABASE__MONGODB_ATLAS__URL=...

Either in a .env file or with environment variable in a terminal session.

Running

You can run the project with

  1. dotnet run

Visit the GraphQL playground at https://localhost:5001/ui/playground.

Testing

Run the test suite with

  1. dotnet test

License

  1. Copyright 2021 SINTEF AS
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.