fanton-dev / intero-server Goto Github PK
View Code? Open in Web Editor NEWAPI and web-client for the Intero - Artificial Inteligence Designing System project.
License: BSD 3-Clause "New" or "Revised" License
API and web-client for the Intero - Artificial Inteligence Designing System project.
License: BSD 3-Clause "New" or "Revised" License
Describe the feature you'd like
Create an POST "/w2fp"
(words to floor plan) endpoint, which accepts JSON in the following format:
{
"query": string
}
It should pass the query text through the generator neural network, scale the output by 10x, replase squares with furniture and respond with the final image.
Describe the type of the deployment you'd like
intero-api
intero-web-client
intero-api
, intero-web-client
and a PostgreSQL databaseintero-api
intero-web-client
Additional context
Describe the feature you'd like
Initialize a monorepo using nx for the frontend client (intero-web-client
) and the backend API (intero-api
).
Describe the type of the deployment you'd like
Create a GitHub Actions workflow, which deploys a development container on push to master and a production container on release tag to the Docker and DigitalOcean container repositories.
Describe the feature you'd like
Create a EditorView component and add a canvas within with an aspect ratio of 1:1.4142 (the aspect ratio of an A4 paper) or with the exact resolution of 595 x 842 px (A4 paper at 72 dpi) and a div which will hold the tool buttons for interacting with the canvas.
Additional context
Describe the feature you'd like
Using Socket.io implement a mechanism which tracks which plotter devices are connecting/disconnecting from the server.
On device connect:
plotters
database tableOn device disconnect:
plotters
database tableAdditional context
Describe the feature you'd like
Create a button in the toolbar, which on click opens a dialog box with a 640x640 empty canvas, a text box and a button for submittion. Upon submiting, a POST request should be made to the "/w2fp" endpoint which will return a 640x640 image. Display the image on the canvas and show 2 additional button at the bottom of the dialog - 1 for accepting the suggestion and 1 for discarding it.
Additional context
Refer to #4 for an explanation on how the POST "/w2fp"
endpoint is supposed to work.
Reference concept of how the whole view is expected to roughly look:
Reference concept of how the floor plan generation dialog is expected to look:
Describe the feature you'd like
Create an POST "/plot/<connection code>"
endpoint, which accepts form-data containg only 1 field - image
. It should search the database for a plotter with the same connection code, get the session id from there, get the socket by the session id and forward the image on the plotter.
Additional context
const plotterSocket = io.sockets.sockets.get(sessionId);
Describe the feature you'd like
Create a button in the toolbar, which on click opens a dialog box with a 4 digit code input field and a button for submittion. Upon submiting, a POST request should be made to the "/plot/" API endpoint which will either return a 202 Accepted or 404 Not Found response. If the response is 202, change the contents of the dialog to let him know the request suceeded. Otherwise, if the response is 404 - display an error message over the code input field.
Additional context
Refer to #6 for an explanation on how the POST "/plot/<connectionCode>"
endpoint is supposed to work.
Reference concept of how the whole view is expected to roughly look:
Reference concept of how the plotting dialog is expected to look:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.