Giter Site home page Giter Site logo

cjsheets / angular-trading-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.28 MB

Simple, proof-of-concept record trading app built around the last.fm REST API providing basic authentication, search and trade proposals. Built with Angular2-Meteor and deployed to Heroku.

Home Page: https://angular-trading.herokuapp.com/

License: MIT License

HTML 18.79% CSS 41.00% TypeScript 40.21%

angular-trading-app's Introduction

Manage a Record Trading Club

Overview

This app allows users to search for, list and trade records from their personal collection. The client is written with Angular v2.x and Typescript backed by Meteor.js v1.4 for real-time database synchronization.

A demo version of this app is deployed at: https://angular-trading.herokuapp.com/

Part of the FreeCodeCamp curriculum based on the following user stories:

  • I can view all books posted by every user.
  • I can add a new book.
  • I can update my settings to store my full name, city, and state.
  • I can propose a trade and wait for the other user to accept the trade.

Install

If you need to install Meteor, run the following:

curl https://install.meteor.com/ | sh

Clone this repository and install npm dependencies:

git clone [email protected]:cjsheets/angular-trading-app.git
cd angular-trading-app
npm install

Setup API Access

To access the Last.FM API, you'll need a key. Once registered, create package.json in the root of the repository:

{
  "public": {
    "last_fm": {
      "key" : "xxxxxxxxxxxxxxxxxxxxxxxxxx"
    },
    "api_url": "http://localhost:3000/api/proxy?"
  }
}

Run

Build and run the app using the settings file.

meteor run --settings settings.json

Navigate to http://localhost:3000

Technology Stack

This package contains:

Front-End Back-End
Angular v2.x Meteor.js
Meteor.js MongoDB
MiniMongo Node.js
RxJS
HTML5/SCSS
Both
Typescript
Mocha/Chai

Deployed to Heroku using this buildpack

Folder Structure

The folder structure is a mix between Angular 2 recommendation and Meteor 1.3 recommendation.

Testing

  • Work in progress

The testing environment in this boilerplate based on Meteor recommendation, and uses Mocha as testing framework along with Chai for assertion.

There is a main test file that initialize Angular 2 tests library, it located under /client/init.test.ts.

All other test files are located near the component/service it tests, with the .test.ts extension.

To-Do

  • lint the code for each app (fix lint errors)
  • write Mocha/Chai tests
  • change notification icon for different trade states
  • add typecasting to all possible functions
  • revert console.log to _log, disable in prod
  • improve masonry loading output

License

MIT License

Analytics

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.