Giter Club home page Giter Club logo

hubtaxi-server's Introduction

HubTaxi: Server Side

Technology use:

  • Serverside:
    • Node.js
    • Expressjs
    • MongoDB (mongoose)
    • Socket.io
  • Clientside:
    • Angularjs Framework.
    • Bootstrap Twitter.
    • Phonegap, cordova and ionic framework. (for hybrid app)

Setup:

  • Clone this repo to your local machine by: git clone https://github.com/vsoft-lab/HubTaxi-Server.
  • Okay, after clone it, you can install all dependencies by type: npm install on your terminal.
  • I used to mongo database for this repo, because you must install and start mongodb. In your terminal: sudo /etc/init.d/mongodb start
  • Use mongorestore -d mydb dump/mydb to restore database.
  • Fix path mongodb: config/init.js --> _db: 'mongodb://localhost/mydb'
  • Finally, you can start server with command: npm start and then, your server will start at http://localhost:6868

===

Reference :

  • Manager:

    • Source code: https://github.com/vsoft-lab/HubTaxi-Client/tree/master/manager
    • Demo: http://103.232.121.63/taxi/webapp/manager/#/main - User: admin | Password: admin
    • Some screenshot: Login: login Main: main ManageType: managetype Setting: setting
  • Driver:

    • Source code: https://github.com/vsoft-lab/HubTaxi-Client/tree/master/driver
    • Demo: http://103.232.121.63/taxi/webapp/driver/#/ user/pass: 30h-9999/123123
    • Screenshot:

    driver1 driverLoad

    ===

    driverLogin history

  • Client:

    • Source code: https://github.com/vsoft-lab/HubTaxi-Client/tree/master/client
    • Demo: http://103.232.121.63/taxi/webapp/client/#/home
    • Screenshot:

    client1 client2

    ===

    client3 clientLogin

hubtaxi-server's People

Contributors

ngnguyen1 avatar tungtouch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hubtaxi-server's Issues

Unable to run the server

Hi,
I have done npm install. And trying to run npm start. getting this in log

[email protected] start /home/khanani92/Development/cloud_app/hubtaxi/HubTaxi-Server
node server

connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
{ _apiServerPath: '/home/khanani92/Development/cloud_app/hubtaxi/HubTaxi-Server',
_port: 6868,
_sessionSecret: 'Enter Secret',
_cookieSecret: 'Enter Secret',
_db: 'mongodb://localhost/HubTaxi',
_tokenScrete: 'huhuhu' }

Kindly help.

restoring indexes for collection mydb.menudatas from metadata

Failed: mydb.menudatas: error creating indexes for mydb.menudatas: createIndex error: The field 'safe' is not valid for an index specification. Specification: { name: "category_1", ns: "mydb.menudatas", background: true, safe: null, key: { category: 1 } }

Error: failed to connect

Mongo running normally, but when I run npm start in the folder, this error appears just below, and http: // localhost: 6868 does not open, but the mongo is running. I'd like some help to find out why.

npm start

[email protected] start /home/dking/Documentos/HubTaxi-Server
node server

connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
connection error: Error: failed to connect to [localhost:27017]
at exports.ConnectionPool. (/home/dking/Documentos/HubTaxi-Server/node_modules/mongodb/lib/mongodb/connection/server.js:540:25)
at exports.ConnectionPool.emit (events.js:182:13)
at exports.ConnectionPool.EventEmitter.emit (domain.js:442:20)
at exports.Connection. (/home/dking/Documentos/HubTaxi-Server/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:140:15)
at exports.Connection.emit (events.js:182:13)
at exports.Connection.EventEmitter.emit (domain.js:442:20)
at Socket. (/home/dking/Documentos/HubTaxi-Server/node_modules/mongodb/lib/mongodb/connection/connection.js:478:10)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:442:20)
at emitErrorNT (internal/streams/destroy.js:82:8)

cannot able to install

I´ve follow all the steps but I can run the server..

I did npm install and all the time when I try to run the server I am getting a error message like this
http://prntscr.com/beesow

I believe the project is not running sub dependencies.

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.