I am trying to load some static files to ejs (I was able to load in HTML file but not here in ejs file). Not just static files. I am not even able to load the CDN files! Can someone please help me to understand where I am going wrong?
Here is the directory structure:

This is my server.js:
const express=require('express');
var app=express();
const MongoClient = require('mongodb').MongoClient
app.set('view engine', 'ejs')
var path = require('path')
app.use('/static',express.static(__dirname + '/public'));
app.get('/',function(req,res){
db.collection('testCollection').find().toArray((err, result) => {
if (err) return console.log(err)
console.log(result)
res.render('index.ejs', {testCollection: result})
})
});
This is my index.ejs:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/static/main.css"/>
</head>
<body>
<form>
<div id="container"></div>
<ul class="quotes">
<% for(var i=0; i<testCollection.length; i++) {%>
<li class="quote">
<span><%= testCollection[i].name %></span>
</li>
<% } %>
</ul>
</form>
</body>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="/static/main.js"></script>
</html>
