GithubHelp home page GithubHelp logo

toniton / tourist Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 2.96 MB

This is a restaurant finder application that uses google places api to help tourist locate nearby restaurants.

License: Apache License 2.0

JavaScript 27.90% Shell 0.01% TypeScript 5.67% CSS 54.44% HTML 11.99%

tourist's Introduction

tourist

This is a restaurant finder application that uses google places api to help tourist locate nearby restaurants.

Built With

Bootstrap, Angular2, Sailsjs

Installation

This project was built to support multiple deployment architecture. So you can easily separate your frontend from your backend service. This is flexible because you might want to run your frontend on a different server and your backend on another one.

Angularjs

Install the angularjs dependencies

npm install

From root, Development only (Angular)

ng serve

Verify the deployment by navigating to your localhost in your preferred browser.

localhost:4200

From root, Production only (Angular) [Before you build, change the url in src/app/app.config.ts to suite your server configuration]

ng build

A dist folder is created with the minified html,css and javascripts resouces. Copy this into a directory available to the public. Eg www folder.

Sailsjs

From the root directory, install the sails dependencies

cd server && npm install

From server, Development only (Sails)

sails lift

Verify the deployment by navigating to your localhost in your preferred browser.

localhost:1337/api/hello

You should get a mesage as below

{
  "code": "E_NOT_FOUND",
  "message": "The requested resource could not be found but may be available again in the future",
  "data": {}
}

From server, Production only (Sails)

forever start app.js --prod

The backend api service would be running at the location below.

serverIpAddress:8081/api/hello

Note:

Sails is lifted on port 1337 by default during development. I have changed the port to 8081 for production so you have to change the url and port in src/app/app.config.ts for the angular application to communicate with the backend api service.

Tests

From the root directory

cd server && npm test

Credits

  • Akinjiola Toni Toniton

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details

Acknowledgments

  • WEAREREASONABLEPEOPLE

tourist's People

Contributors

toniton avatar

Watchers

James Cloos avatar

Forkers

rmeltonmi doness

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.