Giter VIP home page Giter VIP logo

a.musicoin.org's Introduction

Musicoin.org Build Status

Getting started

  • run npm install
  • run tsc to compile ts to js
  • make sure mongo is running
  • npm start or node src/server.js

Note:

Please note that all js fiels in the directory are autogenerated and should not be modified.

Environment Variables

You will need to set the GOOGLE_CLIENT_ID and GOOGLE_SECRET environment variables before authenticating.

Musicoin-Frontend

The static front end part is in react and has to be compiled using npm run build run inside the musicoin-frontend folder. Once this is done, it has to be manually moved from there to src/overview/. To test the frontend part of it as a standalone, run yarn build and yarn start over at musicoin-frontend. To update the submodule recursive stuff, git submodule update --recursive

Typescript

If you are using IntelliJ or Visual Studio Code, you should be able to turn on auto-compiling and hide the .js files from the file viewer.

http://www.typescriptlang.org/

Server Setup

There are a number of steps needed to get a new server up and running.

  • Install build essentials, which installs make, which is required for letsencrypt-express
    • sudo apt-get install build-essential
  • Create a user called coiner to run the app
    • the application files should be installed in coiner's home dir
  • Install authbind
    • sudo apt install authbind
  • Setup authbind for user coiner on port 443. This allows the coiner user to start node and grab ports 80 and 443, which normally needs to be done by root
    • sudo touch /etc/authbind/byport/443
    • sudo chown coiner /etc/authbind/byport/443
    • sudo chmod 755 /etc/authbind/byport/443
  • Setup authbind for user coiner on port 80
    • sudo touch /etc/authbind/byport/80
    • sudo chown coiner /etc/authbind/byport/80
    • sudo chmod 755 /etc/authbind/byport/80
  • See /scripts/deploy for Jenkins configurations

Debugging

Checkout Jenkins log for most faults. Worst case, checkout the server log and revert as quickly as possible to avoid downtime

a.musicoin.org's People

Contributors

ammoti avatar argokasper avatar cryptofuture avatar elgatoflaco avatar hayrullahcansu avatar hendi avatar immartian avatar marcovega avatar obscurecloud avatar pedddro avatar phiferd avatar pr1m0s avatar riverfor avatar varunram avatar xuefeng-zhu avatar

Watchers

 avatar  avatar  avatar

a.musicoin.org's Issues

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.