atb00ker / face-paint Goto Github PK
View Code? Open in Web Editor NEWMintbean November 2021 Hackathon
License: MIT License
Mintbean November 2021 Hackathon
License: MIT License
Details page should only return 1 object.
Endpoint: http://localhost:8000/api/v1/image/a13fdeb7-64dc-4da6-9c1b-4faa3e0d0953
Expected:
{"id":"a13fdeb7-64dc-4da6-9c1b-4faa3e0d0953","image_path":"https://thispersondoesnotexist.com/image","username":"admin"}
Actual:
[{"id":"a13fdeb7-64dc-4da6-9c1b-4faa3e0d0953","image_path":"https://thispersondoesnotexist.com/image","username":"admin"}]
Notice [
and ]
in the response!
canvas app in django has three migration files:
Expected:
[{"id":"a13fdeb7-64dc-4da6-9c1b-4faa3e0d0953","image_path":"https://thispersondoesnotexist.com/image", "drawings": "<json>"}]
Actual:
[{"id":"a13fdeb7-64dc-4da6-9c1b-4faa3e0d0953","image_path":"https://thispersondoesnotexist.com/image","username":"admin"}]
use postgres database and save drawing
data in json format, in Canvas.
EEEEEE... this will work but there is a concept of a MEDIA_ROOT
and media folder, please explore that!
Originally posted by @atb00ker in #21 (comment)
When you add a new dependency. You have to add it in requirements.txt
psycopg2 is missing. Please add it.
Make all these endpoints for canvas app on django.
GET /api/v1/image/ <- all images
POST /api/v1/image/ <- create a new image
GET /api/v1/image/<uuid>/ <- specific image
POST /api/v1/image/<uuid>/ <- save specific image
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.