node-course-2-web-server's Introduction
========================================== Express package ========================================== https://www.npmjs.com/package/express Fast, unopinionated, minimalist web framework for node - great for building web servers ========================================== Handlebars JS templating engine ========================================== http://handlebarsjs.com/ ========================================== ExpressJS view engine for handlebars.js ========================================== https://www.npmjs.com/package/hbs ========================================== Make nodemon watch for hbs files too ========================================== nodemon server.js -e js,hbs ========================================== Using heroku ========================================== 1. Go here https://toolbelt.heroku.com 2. Download heroku toolbelt for your platform and install it 3. Login with heroku > heroku login 4. Add your SSH key > heroku key:add 5. Test the connection to heroku > ssh -v [email protected] 6. Inside package.json specify a "start" script (i.e. a command to be run from the terminal) - see package.json for this "start" script line 7. Make sure your app uses the PORT environment variable (set by Heroku) - see the port variable in server.js for this 8. Create an app in Heroku > heroku create 9. Heroku will add a new remote repository, so make sure to push everything to that remote as well > git push heroku 10. Open the newly created heroku app in the default browser > heroku open
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.