Git Product home page Git Product logo

demo-front-end's People

Contributors

quillcraftsman avatar rakibulhaque9954 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

demo-front-end's Issues

Remove duplicated code

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.

Get "mock_response" from environment variables

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.

  • If it is false we will fetch back-end data from localhost (127.0.0.1:8000).
  • If it is 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.

Use component approach

sveltejs uses component approach.
We can decompose our code on several components for better support and testing.
We can start with +simple.svelte.
Components:

  • Result component
  • Tutorial component
  • Input component

Feature to use back-end in docker

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.

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.