1.2.3 • Published 21 days ago

@p0tion/backend v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago
This library provides everything needed to configure, deploy and manage the infrastructure required to run one or more Phase 2 Trusted Setup ceremonies.

Launching the ready-to-run customized scripts everyone could handle whatever is needed to accomplish the users authentication, ceremony setup, coordination and finalization. You could count on the combination of services provided by the far most popular cloud solutions in the market, as AWS for S3 Storage and GCP Firebase for Authentication, Firestore DB and, Cloud Functions services.

Components Diagram

🛠 Installation

Prerequisities

  • Node.js version 16.0 or higher.
  • Yarn version 3.5.0 or higher.
  • A Firebase Application w/ active billing (Blaze Plan) in order to support Cloud Functions deployment.
  • Follow the Installation and Usage guide.
  • Generate and store a configuration file with your service account's credentials as stated in this documentation inside the packages/backend/serviceAccountKey.json file.
  • Rename the .firebaserc production project alias with your Firebase project name.

Navigate to backend package by running

cd packages/backend

Copy the .default.env file as .env:

cp .env.default .env

And add your environment variables.

📜 Usage

Authorization

Login using your Google Account to Firebase CLI running

yarn firebase:login

Run the following to logout

yarn firebase:logout

Initialization

Initialize a new Firebase project interactively

yarn firebase:init

Deployment

Deploy the current configuration to the prod project running

yarn firebase:deploy

To deploy only the latest Cloud Functions run

yarn firebase:deploy-functions

To deploy only the latest Firestore configuration and rules run

yarn firebase:deploy-firestore

Local Emulator

Firebase provides a Local Emulator Suite as a set of advanced dev-tools w/ a rich user-interface to build and test apps locally using Firebase services as Cloud Functions, Firestore and Authentication.

Prerequisities

  • You will need Java JDK version 11 or higher to run the Firebase Local Emulator.

To start the Emulator run

yarn emulator:serve

To emulate only Cloud Functions service run

yarn emulator:serve-functions

To run the Emulator shell in a new command line window run

yarn emulator:shell

To run tests (e2e/unit) locally in the Emulator run

yarn test:emulator
0.0.0-1f93322

21 days ago

1.2.3

28 days ago

1.2.1

29 days ago

0.0.0-d7c44c1

29 days ago

0.0.0-eb6b176

1 month ago

1.2.0

1 month ago

1.0.2

10 months ago

1.1.0

6 months ago

1.0.1

10 months ago

1.0.0

10 months ago

1.0.9

7 months ago

1.0.8

9 months ago

1.0.7

9 months ago

0.0.0-464aaef

10 months ago

1.0.6

9 months ago

1.0.5

10 months ago

1.0.4

10 months ago

0.0.0-5e35950

10 months ago

0.0.0-82c7999

9 months ago

0.0.0-f6f48a2

9 months ago

0.0.0-a50a645

9 months ago

0.0.0-bf3a814

7 months ago

0.0.0-5d524e2

9 months ago

0.0.0-99b61a3

9 months ago

0.0.0-a6dcd68

10 months ago

0.3.5

12 months ago

0.0.0-bc780c8

6 months ago

0.5.0

10 months ago

0.4.1

12 months ago

0.3.2

12 months ago

0.0.0-ci.846053f

12 months ago

0.4.0

12 months ago

0.3.1

12 months ago

0.5.1

10 months ago

0.4.2

11 months ago

0.3.0

1 year ago

0.2.0

1 year ago