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

Add all necessary files to upload to heroku server #3

Merged
merged 1 commit into from
Jul 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
*.env
*lock.json*
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node index.js
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const express = require('express');
let server = express();
let port = process.env.PORT || 3333;

server.get('/', (request, response) => {
// __dirname is the absolute path of the currently executing file, index.js
// if you don't specify a root option then you should use an absolute path for the html file
response.sendFile('tradutor.html', { root: __dirname });
})
server.listen(port, () => { console.log(`Server listening on port ${port}.`); });
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "pirasotaque",
"version": "1.0.0",
"description": "TradutoR de poRtugues para piRacicabano",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Paiusco/PiRaSotaque.git"
},
"author": "Andre Paiusco",
"license": "ISC",
"bugs": {
"url": "https://github.com/Paiusco/PiRaSotaque/issues"
},
"homepage": "https://github.com/Paiusco/PiRaSotaque#readme",
"engines": {
"node": "12.18.2"
},
"dependencies": {
"express": "^4.17.1"
}
}