API for the Chemistry Cafe web application found here https://github.com/NCAR/chemistrycafe
Install the dotnet
tool
brew install dotnet
Then build the project
dotnet run
This should start a server. You should be able to access a swagger page on the port that the server stars, for example http://localhost:8080/swagger
To build and install Chemistry Cafe locally, you must have Visual Studio 2022.
Simply clone the project then open the .sln file in Visual Studio.
To change the locaiton of the web application, navigate to the Progran.cs folder then change the IP address on line 22.
To change the database location, navigate to the appsetting.json and change the Default Connection String on line 10.
The database that the API is meant to call was made in MySQL. A script to create all the tables can be found in the file chemistry-cafe-database.sql.
When ran in development mode the API launches a Swagger page with all the routes and the various inputes and outputs.
Most routes take in JSON as outputs and give responses as JSON.
This API was written using Controller, Service, Model methodology. The controllers route the incoming traffic and replies using the functions within services which actually do the logic. The models are the various entities in the database.
Copyright (C) 2018-2024 National Center for Atmospheric Research