- This is the express server backend for WattSwap
- Also contains the smart contracts which are developed using truffle
- Clone this branch, start the express app, configure truffke on your machine, clone the front end from ##MASTER and enjoy!
cd servernpm installnpm startcd ..npm i -g trufflenpm itruffle compiletruffle testtruffle migrate- ##You need to install GANACHE from here: 'https://archive.trufflesuite.com/ganache/'
This file contains various environment variables that you can configure.
For the project to build, these files must exist with exact filenames:
public/index.htmlis the page template;src/index.jsxis the JavaScript entry point.
You may create subdirectories inside src.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Launches the test runner in the interactive watch mode.
Builds the app for production to the build folder.
Note: this is a one-way operation. Once you eject, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject at any time.
You can install any dependencies (for example, React Router) with npm:
npm install --save react-routerAlternatively you may use yarn:
yarn add react-routerMIT License