Giter Club home page Giter Club logo

breadboardcad's Introduction

BreadBoardCad

The web service for creating versionable breadboard projects.

Demo Board

GitHub Pages

How to add: https://github.com/marketplace/actions/net-code-coverage-badge

GitHub Pages

badge

Open the deployed API from the browser

Virtual Machine Access

Apply JavaScript image control as described here.


Add Git Tag

  • git tag -a M1 e3afd034 -m "Tag Message" - tag the commit with this command
  • git push origin M1 - specify the tag in the git push command

List Git History

  • git log --oneline --graph -10

oi oi-icons

Useful about DI

Something about tests

AppSettings Kestrel customization

Goot to read:

Blazor Universityhttps://blazor-university.com/overview/what-is-webassembly/

dotnet --list-sdks

Command to filter processes by name

  • ps -ef | grep namepart

breadboardcad's People

Contributors

k-s-k avatar

Watchers

 avatar

breadboardcad's Issues

Add Commands to API Infrastructure

Feature/BBC-51-Add-Commands-to-API
BBC-51: Add commands -

The request example:

{
    "Type": "CreateBoard",
    "Parameters": {
        "X": "8",
        "Y": "13",
        "Name": "Amazing device",
        "Description": "An exciting hardware project"
    }
}

The normal response example:

{
  "Boards": {
    "6637eeec-cab5-44c0-9a79-41661acbfe94": {
      "Name": "Amazing device",
      "SixeX": 8,
      "SixeY": 13,
      "svg": "<svg version=\"1.1\" width=\"180\" height=\"280\" ... r\n</svg>"
    }
  },
  "Error": null
}

The abnormal response example:

{
  "Boards": {},
  "Error": "The command is not consistent: CREATE BOARD Name = \"Amazing device\" X =  Y = 13 Description = \"An exciting hardware project\" User = \"\""
}

Add Swagger to API

As described here.

Install-Package Swashbuckle.AspNetCore
Install-Package Microsoft.AspNetCore.OpenApi

Add Scripting to API Infrastructure

the API must provide:

  • Possibility to send particular command in the text form
  • Possibility to send particular command in JSon form
  • Possibility to send text-based script with command sequence
  • Possibility to send the command batch in JSon form

Add boards storage template

  1. Add storage template (in-memory storage is good for the beginning);
  2. Add core behavior implementation assembly;
  3. Use DI to add these things.

Reorganize Command Project Infrastructure

The ideal structure looks like this:

  • Root level (public root level interfaces and exporting functionality)
  • Common (public interfaces that can be shared between assemblies);
  • Commands (public command implementations);
  • Implementations (Internal scripts and batch processing implementations).

Implement Command Processor Behavior

It must be different things:

  • Drawing Engine
  • Language Parser
  • Command Processor who operates with the Drawing Engine and returns the Images processed regarding Commands from the Language Parser

Add a Test Page

An HTML page at the address /test.htm shows a sample default scheme.
In the future, it can contain some test commands to the API.

Update CI

Annotations for CI part

Annotations for CD part

ADD Command ADD LINE

The command must look like:

  • ADD LINE X1 = 2 Y1 = 2 X2 = 5
  • ADD LINE X1 = 2 Y1 = 2 Y2 = 6

The last parameter must be calculated:

  • To avoid ambiguity
  • To make clear the orthogonal nature of lines

We must do two things:

  • To make the consistency checking parameter virtual;
  • To implement the command initially;
  • To override the consistency checking parameter for this command to provide the calculatable last parameter.

Create a Command API Infrastructure

It must be a Command layer that interacts with the board itself.
The command API must represent a scripting language for the CAD API.

It must be able to serialize and deserialize commands.

Simplify petameters usage

It is not very convenient to use this format of parameters:

command.Parameters["X"].Value

Every particular command can have its parameters based on the current implementation.

Add Board List to API

Task conditions:

  • We must request the board list regarding User Id
  • We must receive only Ids and Metadata of boards

Implementation conditions:

  • Add Description property to the board
  • Ensure the board class has the user Id
  • Create combined key {UserId - BoardUd}
  • Create the API method for board listing by User Id
  • Create the API method for the particular board retrieving by Board Id

image

Commits prefix:

  • BBC-61: Add Board List -

ADD Blazor Site

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.