Code Monkey home page Code Monkey logo

Comments (6)

hyrious avatar hyrious commented on August 16, 2024

I don't use Laragon so I don't know. However the Flat client (web) is a static website. You can refer to its web/flat-web/deploy/nginx folder to see how it is routed. It is the same as many other single-page applications.

from flat-server.

zerohct avatar zerohct commented on August 16, 2024

Which applications do you use to connect the web, server, host, and database?

from flat-server.

hyrious avatar hyrious commented on August 16, 2024

Do they need any applications? They are just services running on servers and binding to different hosts and ports. They communicate with each other using standard HTTP(S) protocols.

The server (this repo) obviously must use Node.js to run since it depends on many Node.js runtime features.

The client (web) is just a static website as I mentioned above. It can be served by many tools/services. Like nginx, vercel, netlify, github-pages, anything that acts as an http server.

The databases are standalone softwares, they just run by themselves.

The hostname is often configured by the domain service, and is often backended by an nginx service to support serving SSL certificates that enables HTTPS.

from flat-server.

zerohct avatar zerohct commented on August 16, 2024

How can I improve my chances of successfully fetching clients with the server?
image

from flat-server.

hyrious avatar hyrious commented on August 16, 2024

Possible reasons:

  • Port 80 is special which is often protected by the firewall. You can test the server manually by opening http://localhost:80 in the browser to see if it is connected and get a response. If it is blocked by your firewall, you can change the port to another.

  • The code in Flat intentionally formats the final URL in HTTPS protocol. However the server only serves behind the HTTP (not HTTPS) protocol. So you have to modify the code to test the server locally.

from flat-server.

zerohct avatar zerohct commented on August 16, 2024

Thank you, my professor.

from flat-server.

Related Issues (20)

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.