Hostal Saez its a first version of a web page developed for a small hostel business
Built focus on development of server side architecture that renders the view using jade, css for styles and javascript. using sockets for realtime communication between the client and server.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Also will give you an example of how to running the project on cloud services using heroku and mLab as database service.
- Node.js + npm https://nodejs.org/en/download/
- GIT installed https://git-scm.com/downloads
- Heroku account https://signup.heroku.com/
- Heroku command line interface (CLI) https://devcenter.heroku.com/articles/heroku-cli
- mLab https://mlab.com
$ git clone https://github.com/fquevedo/hostalsaez
$ cd hostalsaez
$ npm install
We will use examplename
as app heroku name
cd hostalsaez
heroku login
heroku create examplename
git init
heroku git:remote -a examplename
git add .
git commit -m "first git heroku commit"
git push heroku master
Setup url
and mongodb
variables in [server.js
] file located in root folder project
For use heroku set app domain as url value:
const url = 'https://examplename.herokuapp.com'
Local:
const url = 'http://127.0.0.1:3001'
MLab mongodb database for test purpouses:
const mongodb = 'mongodb://testuser:Test123@ds157819.mlab.com:57819/testing'
For test in your local machine use https://127.0.0.1:3001
If use heroku https://examplename.herokuapp.com
- Node.js - JavaScript runtime built
- Heroku - Cloud plataform services
- GIT - Version control system
- Gulp-PostCSS - Tool for transforming CSS with JavaScript
- JSHint - Static Code Analysis Tool
- Travis CI - Continuous integration service
- Fernando J. Quevedo - Initial work - fquevedo