Giter VIP home page Giter VIP logo

rydeboard's Introduction

Ryde Board

Tip: If you are using Mongoose, you can automatically expose your Models as REST resources using restful-mongoose.

Docker Support

# Build your docker
docker build -t es6/api-service .
#            ^      ^           ^
#          tag  tag name      Dockerfile location

# run your docker
docker run -p 8080:8080 es6/api-service
#                 ^            ^
#          bind the port    container tag
#          to your host
#          machine port   

Install

Before using the service you must run the following commands in your terminal

Yarn

$ yarn install

NPM

$ npm install

Start Development

To run project locally with hot reloading whenever code is changed inside the project use the following commands.

Yarn

$ PORT=8080 yarn dev # Set port manually
$ yarn dev # Automatically sets port to 8080

NPM

$ PORT=8080 npm dev # Set port manually
$ npm dev # Automatically sets port to 8080

Deploy

If you have a now.sh account setup. Running the following command will deploy an instance of this service to your account.

Yarn

$ yarn deploy

NPM

$ npm deploy

Docker Demo

It's supposed to be pretty easy to take your Docker to your favourite cloud service, here's a demo of what's our Dockerized bolierplate is like: Ride endpoint

License

MIT

rydeboard's People

Contributors

psdewar2 avatar

Watchers

 avatar Hugh A. Miles II avatar

rydeboard's Issues

Query rides based off user

  • given a user ID be able to query all rides created by this user
  • add param to GET /rides to handle userId
    E.G:
    /rides?created_by={userId}

Deprecated Mongoose Promises

Every time a query is executed the following error is prompted:

DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html

Departure time not being registered in supertest

  • for some reason when creating a ride through ava/supertest the response has the wrong departure time e.g.
  • Given = departure_time: 12-06-2017 3:30am
  • Result = departure_time: 2017-12-06T11:30:00.000Z
  • Should Be = departure_time: 2017-12-06T03:30:00.000Z

[Util] check is query is valid

  • right before execute a Ride.find(query) in api/ride.js just check if fields match appropriately
  • Util.isValidQuery(query)

/rides Created_at attribute

For rides add a created_at attribute and make it post the time at which the ride is made, then change created_by to made_by or something so it's easier to read.

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.