Code Monkey home page Code Monkey logo

nem-coinbase-token-sale-website's Introduction

nem token sale

NEM Coinbase Token Sale Website

This repo provides all of the code needed to operate a token sale on the NEM blockchain.

This code powered the Cache Token Sale.

The code will do the following:

  1. Send your NEM Token (Mosaic) to purchasers
  2. Let purchasers buy with XEM
  3. Let purchasers buy through Coinbase Commerce
  4. Process KYC for XEM and manual crypto payments

This front-end is built with Angular.

Getting Started

  1. Clone Repo
  2. npm install -g @angular/cli
  3. npm install

Start API

You must have the API project up and running with seed data in order to start developing the client.

NEM Coinbase Token Sale API

With the API running, you will need to enter an initial value for funds raised. Using an app like Paw make a request:

PUT http://localhost:3005/localdev/v1/info/update-usd

body
{
  "currentRaised": 116087.49,
  "nextMilestone": 500000
}

The nextMilestone is used by the front end to show the milestone that is being worked against.

currentRaised is the total amount raised. We manually update this because there are too many things to account for to calculate amount raised in an automated fashion (bounties, airdrops, etc)

Local Dev

  1. To run the website, run npm start for a local dev instance. Navigate to http://localhost:4200/.

The app will automatically reload if you change any of the source files.

Server Builds

Run ng run prod to build the project for proudction. The build artifacts will be stored in the dist/ directory.

Run ng run dev for dev.

Running unit tests

Run npm run test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

License

The logos and images in this repository are NOT open source. All logos and images have various copyright ownership and must be removed prior to launching.

Aside from logos and images, the code is under the MIT license - use it as you see fit. We are not responsible for any bugs or issues in this code. Please review before publishing.

nem-coinbase-token-sale-website's People

Contributors

spentak 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.