Skip to content
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

Tag testing #11

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Tag testing #11

wants to merge 8 commits into from

Conversation

armandodecanha
Copy link
Contributor

I've added one example tag wich has a point coordinate to the mongoDB db.

What i'm trying to do is to connect an input wich is autocompleted with the name of the tags.

Copy link
Contributor

@delirial delirial left a comment

Choose a reason for hiding this comment

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

I need some aclaration to align the revision with your proposes

app.use((err, req, res, next) => res.status(422).send({error: err}))

// set the view engine to ejs
app.set("view engine", "ejs");
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this? why a ejs parser?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ejs is used to inject javascript inside html in a easy way.


// Listen to the port set by Heroku
const port = process.env.PORT;
app.listen(port || port, () =>
Copy link
Contributor

Choose a reason for hiding this comment

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

must be app.listen(port || 3000) or something like that for case that PORT ENV variable not be setted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True xD

web: node index.js
Copy link
Contributor

Choose a reason for hiding this comment

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

Why node index.js and the dockerfile?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had stopped the heroku to use docker (it was giving me some errors) so I could deploy the app locally for testing...

"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-node": "^8.3.0"
"ts-node": "^8.3.0",
"typescript": "^3.5.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah !!! 🚀



// Set the home page route
router.get("/", (req, res) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

It 's for a demo ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants