Giter VIP home page Giter VIP logo

Comments (3)

acco avatar acco commented on June 7, 2024

Hey @sw-yx !

In development, the server in the top-level directory (server.js) shouldn't serve any static files at all. We have Webpack handle that for us. So, if you put a file in client/public like this:

echo '<h1>Hi, @sw-yx!</h1>' > client/public/some-file.html

You'll be able to access it here:

localhost:3000/some-file.html

Let me know if you're instead talking about production (we have the server serve static assets in production)

from food-lookup-demo.

swyxio avatar swyxio commented on June 7, 2024

Hey Anthony, this is really really late but i wanted to thank you for your response. i made that comment when i was still a newbie dev and i understand things a lot better now. thanks for being helpful to newbies and i plan to do the same.

from food-lookup-demo.

acco avatar acco commented on June 7, 2024

@sw-yx Great to hear one year later you've made so much progress! Best of luck

from food-lookup-demo.

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.