Skip to content

Glib-w1-Node.js #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gsaw01
Copy link

@gsaw01 gsaw01 commented Feb 18, 2025

No description provided.

@profxed profxed self-assigned this Feb 22, 2025
Copy link

@profxed profxed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For only the first week, such homework is a basic setup for what comes up next, thus, I will not be giving a lot of in detail review so we just keep it as simple as possible.

LGTM; is all I can say.

keep it up. 🎉

Comment on lines +6 to +21
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon server.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"express": "^4.21.2",
"express-handlebars": "^8.0.1",
"node-fetch": "^3.3.2"
},
"devDependencies": {
"nodemon": "^3.1.9"
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this start.


app.post('/weather', (req, res) => {
const { cityName } = req.body;
if (!cityName) return res.status(400).json({ error: "cityName is required" });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@profxed profxed added Approved Week 1 Week 1 assignment and removed To review labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Week 1 Week 1 assignment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants