QuantumSavoryServer
所属分类:虚拟化
开发工具:Julia
文件大小:0KB
下载次数:0
上传日期:2024-03-08 02:57:34
上 传 者:
sh-1993
说明: 用于虚拟测试台模拟器QuantumSavory的用户友好REST API
(User-friendly REST API for the virtual testbed simulator QuantumSavory)
文件列表:
src/
Config.toml
LICENSE
Manifest.toml
Project.toml
# Quantum Savory Server
A user-friendly server providing a RESTful Api interface for a model quantum testbed simulator ([QuantumSavory.jl](https://github.com/QuantumSavory/QuantumSavory.jl))
## Code structure
\- `src`
\- `controller`
\- `Controller.jl` - the available API endpoints for the simulator
\- `service`
\- `Service.jl` - contains the methods for each endpoint
\- `utils`
\- `Constants.jl` - contains frequently used constants
\- `Config.toml` - server configuration
\- `app.jl` - starting point of the application
# Setting up the server
Clone the repository to local
```bash
> git clone git@github.com:krishna-praneet/QuantumSavoryServer.git
```
Inside the downloaded folder, run
```bash
> julia --project src/app.jl
```
or if using julia REPL in package mode
```bash
pkg> activate .
julia> include("src/App.jl")
```
You should be able to see the following
```bash
____
/ __ \_ ____ ______ ____ ____
/ / / / |/_/ / / / __ `/ _ \/ __ \
/ /_/ /> /_/ / /_/ / __/ / / /
\____/_/|_|\__, /\__, /\___/_/ /_/
/____//____/
[ Info: Version 1.4.9 (2024-02-07)
[ Info: Started server: http://0.0.0.0:8080
[ Info: Documentation: http://0.0.0.0:8080/docs
[ Info: Metrics: http://0.0.0.0:8080/docs/metrics
[ Info: Listening on: 0.0.0.0:8080, thread id: 1
```
The server should start at `http://0.0.0.0:8080`
# Running the APIs
The Swagger documentation for the server is available at `http://0.0.0.0:8080/docs` which displays a list of available endpoints and examples.
近期下载者:
相关文件:
收藏者: