Skip to content

Tag testing#11

Open
armandodecanha wants to merge 8 commits into
masterfrom
tag_testing
Open

Tag testing#11
armandodecanha wants to merge 8 commits into
masterfrom
tag_testing

Conversation

@armandodecanha

Copy link
Copy Markdown
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.

@delirial delirial left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread index.js
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
Copy Markdown
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
Copy Markdown
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.

Comment thread index.js

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True xD

Comment thread heroku.yml
build:
docker:
web: Dockerfile No newline at end of file
web: node index.js No newline at end of file

Copy link
Copy Markdown
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
Copy Markdown
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...

Comment thread package.json
"ts-jest": "^24.0.2",
"ts-node": "^8.3.0"
"ts-node": "^8.3.0",
"typescript": "^3.5.2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah !!! 🚀

Comment thread routes/api.js


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

Copy link
Copy Markdown
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