2.4.69 ā€¢ Published 4 years ago

@joincivil/newsroom-manager v2.4.69

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Civil Logo


Civil is a decentralized and censorship resistant ecosystem for online Journalism. Read more in our whitepaper.

WIP Civil DApp - Read Documentation and Interact with Contracts and tools at our DApp, hosted for your convenience. This DApp and associated contracts are a Work In Progress and contracts are deployed on the Rinkeby testnet. If you would like some test CVL to try out the DApp, please ask in our Gitter room and we can send you some.

This repository contains all of the open-source Civil tools and packages written in Typescript. We hope that those tools will be useful for creation of interesting applications on top of the ecosystem as well as be useful in any project in the Ethereum space.

Coverage Status CircleCI Gitter chat Telegram chat

Most of the packages require additional typings for external dependencies. You can include those by prepending @joincivil/typescript-typings package to your typeRoots config.

"typeRoots": ["node_modules/@joincivil/typescript-typings/types", "node_modules/@types"],

Published packages

PackageNPMDescription
@joincivil/corenpm linkJS library for interacting with Civil ecosystem
@joincivil/tslint-rulesnpm linkLinting rules for Civil's Typescript packages
@joincivil/utilsnpm linkUtilities shared between Civil projects used during runtime
@joincivil/typescript-typesnpm linkTypes used in multiple Civil packages
@joincivil/typescript-typingsnpm linkTypescript type roots for external projects and internal modifications
@joincivil/ethapinpm linkAn abstraction of Ethereum communication

Private packages

PackageDescription
@joincivil/contractsSmart-contracts needed for the Civil's protocol
@joincivil/dappDApp for interacting with the Civil contracts
@joincivil/dev-utilsUtilities needed for the proper working of the mono-repo packages, builds and tests
@joincivil/debug-uiWIP: Minimal website to monitor, observe and debug the protocol and all the utilities and packages of the ecosystem

Contributing

Civil's ecosystem is free and open-source, we're all part of it and you're encouraged to be a part of it with us. Best place to start hacking would be to use the @joincivil/core and build some application on top of the protocol.

If you're itching to delve deeper inside, help wanted and good first issue labels are good places to get started and learn the architecture.

Dev Setup

Install dependencies

This project is using yarn workspaces. They require yarn >= 1.0 to work properly.

Set up all dependencies:

from the root directory:

yarn install

Build

Build all packages in the monorepo:

yarn build

Turn on file-watch mode and rebuild most of the files on change:

yarn watch

Lint

Check all packages for linting errors:

yarn lint

Testing

Tests in Civil's ecosystem require the use of Ganache, Ethereum's development test network, spin it in a seperate terminal:

yarn ganache

Finally run all the tests in the main repository:

yarn test

Easy Setup with front-end

We've added a helper command to assist you if you want to develop using the front-end and a local ganache. Just 3 simple commands.

First, however, you may want to add your own address (e.g. MetaMask account) to our config file so that you are distributed tokens/ETH properly and change the Appellate and GovernmentController addresses. This is especially useful if your MetaMask account is not the same as one of you ganache accounts (all ganache accounts are given tokens by default). Config file can be found at packages/contracts/conf/config.json.

From the root directory:

yarn ganache

Once that is running, in another terminal, from the root directory:

yarn preparelocally

After that completes:

cd packages/dapp
yarn start

Now you have the dapp front-end running at localhost:3000. Make sure to select localhost 8545 in metamask to interact with the dapp.

Run commands in all packages

Civil's monorepo is using lerna to easily manage the monorepo structure. Two helper yarn scripts are provided for your convenience.

To run the supported lerna version:

yarn lerna

To run scripts in all packages in the monorepo:

yarn lerna:run

Cleaning the state

To refresh the repository state as much as possible run:

yarn clean && yarn lerna clean --yes && rm -r node_modules && yarn install

šŸ™ was here.

2.4.69

4 years ago

2.4.68

4 years ago

2.4.67

4 years ago

2.4.66

4 years ago

2.4.65

4 years ago

2.4.64

4 years ago

2.4.63

4 years ago

2.4.62

4 years ago

2.4.61

4 years ago

2.4.60

4 years ago

2.4.59

4 years ago

2.4.58

4 years ago

2.4.57

4 years ago

2.4.56

4 years ago

2.4.55

4 years ago

2.4.54

4 years ago

2.4.53

4 years ago

2.4.52

4 years ago

2.4.51

4 years ago

2.4.49

4 years ago

2.4.50

4 years ago

2.4.47

4 years ago

2.4.48

4 years ago

2.4.46

4 years ago

2.4.45

4 years ago

2.4.44

4 years ago

2.4.43

4 years ago

2.4.42

4 years ago

2.4.41

4 years ago

2.4.40

4 years ago

2.4.39

4 years ago

2.4.38

4 years ago

2.4.37

4 years ago

2.4.36

4 years ago

2.4.35

4 years ago

2.4.34

4 years ago

2.4.33

4 years ago

2.4.32

4 years ago

2.4.31

4 years ago

2.4.30

4 years ago

2.4.29

4 years ago

2.4.28

4 years ago

2.4.27

4 years ago

2.4.26

4 years ago

2.4.25

4 years ago

2.4.24

4 years ago

2.4.23

4 years ago

2.4.22

5 years ago

2.4.21

5 years ago

2.4.20

5 years ago

2.4.19

5 years ago

2.4.18

5 years ago

2.4.17

5 years ago

2.4.16

5 years ago

2.4.15

5 years ago

2.4.14

5 years ago

2.4.13

5 years ago

2.4.12

5 years ago

2.4.11

5 years ago

2.4.10

5 years ago

2.4.9

5 years ago

2.4.8

5 years ago

2.4.7

5 years ago

2.4.6

5 years ago

2.4.5

5 years ago

2.4.4

5 years ago

2.4.3

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.21

5 years ago

2.3.20

5 years ago

2.3.19

5 years ago

2.3.18

5 years ago

2.3.17

5 years ago

2.3.16

5 years ago

2.3.15

5 years ago

2.3.14

5 years ago

2.3.13

5 years ago

2.3.12

5 years ago

2.3.11

5 years ago

2.3.10

5 years ago

2.3.9

5 years ago

2.3.8

5 years ago

2.3.7

5 years ago

2.3.6

5 years ago

2.3.5

5 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

1.8.11

5 years ago

1.8.10

5 years ago

1.8.8

5 years ago

1.8.7

5 years ago

1.8.6

5 years ago

1.8.5

5 years ago

1.8.4

5 years ago

1.8.3

5 years ago

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.3

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.4.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago