Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 3.42 KB

CONTRIBUTING.md

File metadata and controls

71 lines (52 loc) · 3.42 KB

Local Setup

Requirements

Setup

This needs to be done once per repository download.

  1. Clone this repo
  2. Run dotnet tool restore
  3. Run npm install

Note

After starting the database for the first time you will need to setup the db from online ressources. This can be done by Swobup on http://localhost:8000/docs. You can find the credentials in the docker-compose file (SWOBUP_USERNAME=swobup, SWOBUP_PASSWORD=test).

Run:

  1. PUT api/v2/database/init
  2. PUT api/v2/ontology/build

You can verify the correct task execution on redis. It might happen that some ontologies fail to build, in this case you can try to build them again with POST api/v2/ontology and the correct link from our ontology repository.

Start

./build.cmd run db, to start up Swate (+ Database network)

Swate runs on https://localhost:3000, Swobup on http://localhost:8000/docs, Database - Neo4j can be viewed in the browser on http://localhost:7474/browser/.

Warning

Should the neo4j database not correctly start up with ./build.cmd run db delete the container (only container not the volume) and start it again. This can be easily done with the docker ui. Open the swate_dev network and click on the thrash bin icon next to the neo4j container.

If you know a solution to this issue, please let us know 😞

Available commands

Usage: ./build.cmd <command>

run [db]                            Start .net backend server, vite frontend (and database,
                                    swobup with docker if `db`)

release [pre]                       Run .net tests tag current branch and force push to
                                    release branch (nightly if `pre`), this will trigger
                                    Github release with docker image

Contribute

If you want to contribute to Swate, open an issue with the feature/bug you want to work on. This way you can ensure that your approach is in line with the project goals and you can get feedback from the maintainers.

Afterwards you can fork the repository and start working on your feature/bug. When you are done, open a pull request with a detailed description of your changes and the issue you are working on.

We are currently still working on a nice project structure. For now ask us is any questions arise in the related GitHub issue!