Code Monkey home page Code Monkey logo

conuhacks2_travelkickstart's Introduction

TravelKickstart

Kickstarter but for travel, with a social media setting

** YaaS doc: YaaS Builder quickstart.pdf **

FUNDEE

For people who wants to go on a trip to explore the world, do a humanitarian act, see family who doesn't have the money to do so they can make a 'travel proposal' for the crowd to fund Let's call 'travel proposal' a 'TP'

FUNDERS

Other people can fund them especially those we are well-travelled and who understands that travelling is an essential part of life They could purchase a 'Funding Purchase' aka FP

both have their 'feed' that shows the recent, almost funded, most popular (other criteria) TP and can also access their friends/connections their own travels

other perks in a social media

Incentives such as souvenirs can be given to the funders

  • SAP Hybris YaaS
  • Stripe (tokenize credit card and use Stripe API, then send to YaaS)
  • MEAN stack, using EJS

Technologies

  • SAP Hybris YaaS YaaS is used to back the financial aspect of the system and allows sellers to create a YaaS Product in the online Builder portal and control all aspects of the 'business' The YaaS Product will then be purchased by the funders

    The products and other operations to control the system are then exposed through a REST API that requires OAuth2

    AFAIK, Product is the only suitable 'object' for both TP and FP

    The challenge for TravelKickstart is that the funders don't 'buy' the TP in full amount, and in usual cases would just pay a minimal amount, such as $5, $10

    To solve this, every FP (e.g. $5) should reduce the current funding of a TP

    i.e. call to POST/PUT FP must trigger POST/PUT of FP

  • MEAN stack followed this tutorial https://thinkster.io/tutorials/mean-stack

mongoose models: Persons - could be a Fundee or a Funder, based on if their travel property is an empty array Travels

================================================== :cry: :cry: :cry:

Not able to imlement app due to limited time constraint (24 hours - sleeping) which is mostly spent learning MEAN (first time) and trying to figure out the YaaS API (first time) but it definitely is a great experience

๐Ÿ˜„ ๐Ÿ˜„ ๐Ÿ˜„

What is working?

MEAN stack fully working

  • Mongo is running, with Mongoose models also providing the domain object (/models)

  • Express is working, didnt touch the default options

  • AngularJS contains most of the logic

  • NodeJS is working

    [routes/index.js] contains Monggose objects init. and ** internal routes **

        router.get('/', function(req, res, next) { }
    
        router.get('/travels', function(req, res, next) { }
    
        router.post('/travels', function (req, res, next) { }

    serves one route: router.get('/travels', function(req, res, next) { }

A lot of business logic still needs to be included

  • Adding/removing a new TP (Product)
  • Supporting a TP by buying FP, e.g. paying $5 to support a $10k trip
  • Social media stuff - adding/removing friends
  • Everything else

This provides a very good foundation for a Online Store ('Frontstore' in YaaS terms) web-app based on MEAN

==================================================

To run

install Node and MongoDB, express, express-generator

!!! IMPORTANT before running generate a token in YaaS builder, read pdf for details !!!

this project is created using WebStorm AngularJS or NodeJS, which gives the same structure as express-generator

go to CONUHACKS2/ directory

npm install
npm start

conuhacks2_travelkickstart's People

Contributors

lennybot1 avatar

Watchers

James Cloos avatar Lenmor Larroza Dimanalata avatar

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.