You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why did you install axios and used it instead of `node-fetch?
Why there are empty files?
test.test.js should be called maybe index.test.js and should be in a separate folder on the root not in src.
There's no need to handle the index.html for '/' route, it's handled by default with express.static.
You can create a file and called it errors and export both clientError and serverError from it.
Your list of requires needs edits in order 1. core 2. 3rd party modules 3. your own modules.
You didn't use the router.
You should edit your file structure and split app.js into index.js which contain the initial server listening and create a controller folder and a router.
Why didn't you bring your API_KEY from the environment variables?
Since you know how to destructure variables, why didn't you destructure the other one?
.env
shouldn't be on Github.axios
and used it instead of `node-fetch?test.test.js
should be called maybeindex.test.js
and should be in a separate folder on the root not insrc
.index.html
for'/'
route, it's handled by default withexpress.static
.errors
and export bothclientError
andserverError
from it.router
.app.js
intoindex.js
which contain the initial server listening and create a controller folder and a router.API_KEY
from the environment variables?The text was updated successfully, but these errors were encountered: