Giter Site home page Giter Site logo

ikoala / puttyimages-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from likecoin/puttyimages-web

0.0 2.0 0.0 1.05 MB

Website for images adopted Like protocol.

License: GNU General Public License v3.0

JavaScript 40.26% Makefile 0.13% CSS 6.19% Vue 52.90% Shell 0.52%

puttyimages-web's Introduction

puttyimages

Puttyimegs is an open stock image DApp that live within the LikeCoin ecosystem.

Development Setup

The suggested way of development environment is docker based. This guide will assume you have Docker Community Edition 18+ installed. Please download at https://store.docker.com and follow the installation instruction.

After you setup docker, fun the following command to setup the docker image and basic DB schema. Also kick start the docker container for development.

# Build the docker images, run it for the first time or you have dependency
# updates
docker-compose build

# Run the DB migration and reseed the DB for the first time run or after you
# pull an update.
docker-compose run --rm nuxt npm run sequelize db:migrate
docker-compose run --rm nuxt npm run sequelize db:seed:all

# Kick of the development setup
docker-compose up

Local files are mount into docker you can modify file in your fs and will hot reload.

Env Setup

# For development
export LIKECHAIN_HOST=http://x.x.x.x
export PROVIDER_ADDRESS=0x
export PROVIDER_PRIVATE_KEY=xxx
docker-compose up

# For deployment
kubectl delete secret app-secret # remove old secret
kubectl create secret generic app-secret \
  --from-literal=LIKECHAIN_HOST=http://x.x.x.x \
  --from-literal=PROVIDER_ADDRESS=0x \
  --from-literal=PROVIDER_PRIVATE_KEY=xxx

Test

make test

Continuous Integration

Oursky hosts a staging continuous integration pipeline for fast review. The deployed endpoint is https://puttyimages.pandawork.com. The endpoint is in sync with the master branch of Oursky fork via Travis-CI. You can send PR to the branch if you want your changes reflect on the review endpoint.

The continuous integration setup is assuming an kubernetes environment. If you want to deploy your own instances, you can checkout the ./k8s folder for details.

Production

docker-compose -f docker-compose.yml -f docker-compose.production.yml --project-name puttyimages_prod build
docker-compose -f docker-compose.yml -f docker-compose.production.yml --project-name puttyimages_prod up

For detailed explanation on how things work, checkout the Nuxt.js docs.

Backpack

We use backpack to watch and build the application, so you can use the latest ES6 features (module syntax, async/await, etc.).

puttyimages-web's People

Contributors

nwingt avatar indream avatar rickmak avatar mileswong avatar mckingho avatar williamchong avatar aludirk avatar

Watchers

James Cloos avatar iKoala 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.