findsimilar / demo-front-end Goto Github PK
View Code? Open in Web Editor NEWFront-end part of FindSimilar demo project
License: GNU General Public License v3.0
Front-end part of FindSimilar demo project
License: GNU General Public License v3.0
We get data from production back-end if site on production. And we get data from localhost if site on local machine in development mode.
We need a comfortable way to develop without running back-end server.
Add feature to load example text from text file.
There are some parts with duplicated code. In the examples/+page.svelte
and in the all-features/+page.svelte
This code need to be removed.
https://github.com/findsimilar/demo-front-end/blob/main/src/routes/tutorial/core.js#L3 - in this line we take the IS_MOCK_RESULTS
constant.
false
we will fetch back-end data from localhost (127.0.0.1:8000).true
we will use mocked responses without run back-end server.This is good, but this constant is the part of code under git. We need to get this parameter outside, for example from environment variables.
I've tried https://learn.svelte.dev/tutorial/env-static-private - this way but it hasn't worked and I don't know why.
sveltejs uses component approach.
We can decompose our code on several components for better support and testing.
We can start with +simple.svelte
.
Components:
Back-end place https://github.com/findsimilar/demo here.
This is python django drf
project.
To easy start we can use IS_MOCK_RESPONSE=true
to work with static data.
If we need local back-end we should clone back-end project and start server locally.
It's not comfortable (especially who doesn't know python
)
That's why I propose to make feature to run back-end in docker and make possibility to connect from front-end
We have open source image on docker hub: https://hub.docker.com/r/findsimilar/demo, may be we can use this image.
Get example data and tutorials from back-end
Optimize bootstrap grid for mobiles
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.