Skip to content

A platform for P2P resource distrobution. Everything for everyone, no questions asked.

License

Notifications You must be signed in to change notification settings

ameddin73/distro-phl

Repository files navigation

DISTRO PHL

A platform for P2P resource distrobution. Everything for everyone, no questions asked.

Running Locally

Install Packages

npm i

npm i -g firebase-tools

Setup Firebase

firebase login

Connect to dev project.

Request permission from repo owner for project access.

Run

Local environment variables from the firebase project are needed to run. Request from owner.

npm start

This will start the app and connect to the firebase dev project. Run firestore & auth emulators to run locally.

Test

Test firestore rules:

npm run test-firestore

Test React app:

npm run test-react-app

Update Firestore Data

Changes to firestore data must be constructed programmatically using populate.test.ts in the test/firebase directory. After building the desired test data export wit the following command and commit both to git.

firebase --project demo-project emulators:start --only firestore,auth,storage --import src/test/firebase

This starts the emulator with the current data. To make changes to firebase, do so programmatically by updating populate.test.ts. For the other emulators, do so manually. When finished, export with:

firebase --project demo-project emulators:export src/test/firebase

Update Dependencies

npx npm-check-updates -u && npm i

⚠️ Rollback updates on @date-io/date-fns

Additional Information

Create React App

This project was bootstrapped with Create React App.

Available Scripts

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

🔴 Don't do this.

About

A platform for P2P resource distrobution. Everything for everyone, no questions asked.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages