Giter VIP home page Giter VIP logo

energymarket's Introduction

Verde Blocks

Verde Blocks in a blockchain powered energy marketplace to connect buyers and wholesale renewable energy sellers.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js 8.X
  • PostgreSql ** not required for development. ** Developers may choose to do this for convenience only.

Database Setup

Create a user apn: createuser apn

Login into postgres as postgres user: sudo -i -u postgres psql

Set password for apn user: \password apn

Create Database: CREATE DATABASE vblocks;

Grant privileges to apn: GRANT ALL PRIVILEGES ON DATABASE vblocks TO apn;

Go to verdeblocks folder and Run database migrations and seeds: npm run db-migrate

Go to verdeblocks folder and populate database seeds: npm run run-seeds

Go to verdeblocks folder and populate database seeds: npm run price-seed

After populating the seeds in the DB run following command in postgres terminal connected to vblocks(\c vblocks): ALTER SEQUENCE "Users_userId_seq" RESTART WITH 2;

Start Server

Start the development server: npm start Start the server in debug mode: npm run debug

Server is running at http://localhost:5000 For Swagger documentation, go to http://localhost:5000/api-docs

Running lint

Verifying code style and practices.

npm run lint

Fix Lint issues

npm run lint-fix

This will verify that all code matches the lint guidelines.

energymarket's People

Contributors

shauryakalia avatar

Watchers

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