Skip to content

User-friendly REST API for the virtual testbed simulator QuantumSavory

License

Notifications You must be signed in to change notification settings

QuantumSavory/QuantumSavoryServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Savory Server

A user-friendly server providing a RESTful Api interface for a model quantum testbed simulator (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

> git clone [email protected]:krishna-praneet/QuantumSavoryServer.git

Inside the downloaded folder, run

> julia --project src/app.jl 

or if using julia REPL in package mode

pkg> activate .
julia> include("src/App.jl")

You should be able to see the following

   ____                            
  / __ \_  ____  ______ ____  ____ 
 / / / / |/_/ / / / __ `/ _ \/ __ \
/ /_/ />  </ /_/ / /_/ /  __/ / / /
\____/_/|_|\__, /\__, /\___/_/ /_/ 
          /____//____/   

[ 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.

About

User-friendly REST API for the virtual testbed simulator QuantumSavory

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages