Hi everybody, as the title of my posts suggests I cannot pass this challenge. I have tried various solutions and they all do what the challenge says to do , but the test wont pass.
Here is what I’ve done so far,
-
Created the .env file as the cloned repository did not have one.(If the repository did have one and its hidden, I do not know how to reveal it. The way the challenge is worded implies the file already exists, as it never instructs the student to create one.)
-
added “MESSAGE_STYLE=uppercase” without quotes to .env
-
Here is my current working solution
let data = {"message": "Hello json"};
app.get('/json',function(req,res){
if(process.env.MESSAGE_STYLE==="uppercase"){
data.message = data.message.toUpperCase();
}
return res.json(data);
}
)
and finally here is the link to my repl.it page
https://repl.it/@Maximilianovon/boilerplate-express
Any help would be appreciated
Link to the challenge: