Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8754841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:43:13+00:00 2026-06-13T13:43:13+00:00

I am building a todo app using express framework on node server…I have an

  • 0

I am building a todo app using express framework on node server…I have an index.ejs file as the starting point for my application, In the same folder I put my jquery.min.js file, when I try to include the jquery file as

<script src="jquery.min.js" type="text/javascript"></script>

My app fails to load it, when I see the network in my chrome it looks for

https://localhost:3000/jquery.min.js

How do I load the file ??

PS: I am accustomed to loading scripts via cloud.google.com by placing the url in the src tag , But I want my application to load faster by this approach

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:43:14+00:00Added an answer on June 13, 2026 at 1:43 pm

    you should create a ./public folder for static files.

    add this line to your app.js above all your routes:

      app.use(express.static(path.join(__dirname, 'public')));
    

    Then just use this in index.ejs:

    <script src="/jquery.min.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a KML file using an app that I have built. Right
I am building an app using Twisted in which a server contains some timers
I'm building an app which searches the web using search engine. I have one
I'm building a web app using EF Code First and ASP.NET MVC. I have
So I'm building an app using PHP and MongoDB which will have a fair
I have been using SQL CE for a desktop app I am building but
I am building an app using ASP.NET 4.0. I have a table called entries.
To learn ASP.net I started building a todo web app(web forms not MVC), this
We're building a Windows and Mac app using a commercial licence of Qt, which
I need to develop an app that is using multithreading. Basicly, I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.