Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 7fae062

Browse files
committed
Update README, update parity version
1 parent b9e86f7 commit 7fae062

File tree

5 files changed

+26
-28
lines changed

5 files changed

+26
-28
lines changed

README.md

+12-20
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Launchpad
22

3-
What is Launchpad?
4-
Base app to start new project. The repository is monorepo with api, contract and placeholder for react (frontend) application.
3+
## What is Launchpad?
4+
Launchpad is the ideal scaffolding to start a new project. The repository is a monorepo with an api, contract and placeholder for react (frontend) application.
55
We are required to use this app as starter for any projects as it provides a good default for API, writing Contracts,
66
CI/CD (CircleCI) & deployment.
77

88
## Features:
99

1010
- Contracts and contract deployment
1111
- Basic api structure to start from
12-
- A place holder for react app to be added on
12+
- A place holder for react app to be added on(with e2e test already setup)
1313
- Continuous Integration (Full CircleCI configuration to check contract, api and react)
1414
- Parity backup and restore *(uses Amazon S3)*
1515
- Sentry integration for Error Monitoring (Optional)
@@ -45,15 +45,18 @@ Other than the Dev and Swarm stacks we have:
4545
### Local Setup with Docker (recommended)
4646
To run the project locally you will require `docker` and `docker-compose`.
4747

48-
Please follow detail instruction [here](https://github.com/appliedblockchain/launchpad/tree/master/docker-dev#how-to-use)
49-
50-
> Note: It is recommended to use docker base local setup.
48+
1. Cd into `stack`
49+
2. Run `source docker-aliases.sh`
50+
4. Start parity only: `launchpad-compose up parity`
51+
5. While parity is running, deploy the contracts(run `npm run compile && npm run deploy` from the contracts folder, You might need to run `npm i && npm run compile` if you haven't already).
52+
6. Run `launchpad-compose build` to build the images
53+
7. Stop parity and run `launchpad-compose up` to start all the services
5154

5255
### Local setup without docker
5356

5457
1. [Running **Ethereum Blockchain** node locally](https://github.com/appliedblockchain/launchpad/tree/master/api#run-blockchain-network-and-contract-deployment)
5558

56-
**Options**
59+
**Options**
5760
* [Ganache](https://truffleframework.com/ganache)
5861
* [Parity](https://wiki.parity.io/Setup)
5962
* [Geth](https://ethereum.gitbooks.io/frontier-guide/content/getting_a_client.html)
@@ -68,20 +71,9 @@ Please follow detail instruction [here](https://github.com/appliedblockchain/lau
6871
4. [Running react application (WebApp)](https://github.com/appliedblockchain/launchpad/tree/master/react#getting-started)
6972

7073

71-
### Run this app with Docker Dev
72-
73-
1. Cd into `stack`
74-
2. Run `source docker-aliases.sh`
75-
3. You might need to run `npm i && npm run compile` in the contracts directory if you haven't already.
76-
4. Start parity only: `launchpad-compose up parity`
77-
5. While parity is running, deploy the contracts(run `npm run deploy` from the contracts folder).
78-
6. Run `launchpad-compose build` to build the api and react images
79-
7. Stop parity and run `launchpad-compose up` to start all the services
80-
81-
8274
### Run this app with Docker Staging
8375

84-
#### `docker-compose up --build`
76+
`docker-compose up --build`
8577

8678
### Restart API:
8779

@@ -95,4 +87,4 @@ Please follow detail instruction [here](https://github.com/appliedblockchain/lau
9587

9688
---
9789

98-
For any issue or change request notify @makevoid @SeekTheError in the `#launchpad` AB slack channel.
90+
For any issue or change request notify @makevoid @remi in the `#launchpad` AB slack channel.

react/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ This folder is placeholder for actual for react (front-end) application.
44
Example of react application from `mantle-demo`
55

66
> Note: This app is created using `create-react-app`
7+
8+
# e2e
9+
The e2e folder contains a basic setup to run puppeteer integration test from your local machine or from a docker environment(and circleci), keep it when changing the frontend so you can implement integration test easily.

stack/Dockerfile-parity

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM parity/parity:v1.11.8
2-
1+
FROM parity/parity:v2.4.0
2+
USER root
33
ARG NPM_TOKEN
44
RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
55

@@ -26,10 +26,14 @@ RUN mkdir ~/.aws
2626
RUN echo "[default]\naws_access_key_id = $S3_ACCESS_KEY_ID\naws_secret_access_key = $S3_SECRET_ACCESS_KEY" > ~/.aws/credentials
2727

2828
RUN apt-get update -y
29-
RUN apt-get install -y curl bash redis-tools
30-
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
31-
RUN apt-get install nodejs -y && \
32-
rm -rf /tmp/*
29+
RUN apt-get install -y curl bash redis-tools software-properties-common
30+
31+
# convoluted node 10 install
32+
RUN add-apt-repository -y -r ppa:chris-lea/node.js && rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list && rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list.save && \
33+
export VERSION=node_10.x && export DISTRO="$(lsb_release -s -c)" && \
34+
echo "deb http://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list \
35+
echo "deb-src http://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list && \
36+
apt-get update && apt-get install -y --allow-unauthenticated nodejs
3337

3438
COPY ./package* /parity/
3539
COPY ./backup /parity/

stack/backup/entrypoint-parity.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ done
2525
# NOTE: uncomment to activate backups
2626
# node /parity/parity-backup-cron-setup.js
2727

28-
/parity/parity --chain /parity/spec.json --config /parity/authority.toml -d /parity/data
28+
parity --chain /parity/spec.json --config /parity/authority.toml -d /parity/data

stack/parity/chain/spec.json

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"minGasLimit": "0x2faf080",
2121
"gasLimitBoundDivisor": "0x400",
2222
"networkID": "0x11",
23-
"maximumUncleCount": 0,
2423
"eip140Transition": 0,
2524
"eip211Transition": 0,
2625
"eip214Transition": 0,

0 commit comments

Comments
 (0)