Simple carpooling library
This is a simple test of a carpooling library, built with node and some ♥.
Resources
Working with the library
This library is a simple project to build something (re)usable with tests.
const Coco = ;const Carpooling = ; // Build options for a journeyconst options = kms: 355 price_per_kms: 162 passengers: comeBack: true conductor: "ugo" car: model: "308" brand: "Peugeot" consumption: 7 ; // Create a journeyconst journey = P; // Create a passengerconst uPassenger = P; // Add a passengerjourneyconst passengersList = journeypassengersList; // Get the passengers of a journeyconst numberOfPassengers = journeypassengersList; // Get the price per passenger for a journeyconst pricePerPassenger = journey; console;
See in the examples/
folder to see more ways on how to play with the library.
Working on the library
git clone git@github.com:Ugarz/cocovoit.gitcd cocovoitnpm start // Run the example codenpm run dev // Run a live server to play around npm test // Run the testsnpm run test:live // Run the tests, live