Skip to content

Inventory and service management for SMBs. Firebase backend with React and Tailwind in a SaaS-friendly model.

License

Notifications You must be signed in to change notification settings

Reterics/storager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Logo StorageR

build codecov License: MIT maintenance-status

Preview

Lightweight cloud-based storage and service management application built with React, TypeScript, and TailwindCSS.

Getting started 🚀

Preparing the Cloud Environment ☁️

To run StorageR locally, create a .env file based on the provided .env.template.

Create a Google Firebase project in the Firebase console: https://console.firebase.google.com/project/

After you have access to the Firebase dashboard, follow these steps:

  • Create a Web App
    • Open Project settings
    • Under Your apps section click the Add app button and click to the third Web App button
    • On the next page Add a nickname to your app and click to Register app button and then Continue to console
    • Now in the Your apps section you can see all of the details you need to put in your .env file
  • Setup Firebase Rules
    • Firestore: Use the provided firestore.rules in the project root
    • Storage: Use the provided storage.rules in the project root
    • Deploy with Firebase CLI:
      firebase login
      firebase init # choose Firestore and Storage, point to firestore.rules and storage.rules
      firebase deploy --only firestore:rules,storage
    • For temporary DEV-only testing you can relax rules, but prefer using the provided authenticated rules.

Environment Setup

  1. Install dependencies
npm install
  1. Create a .env file from the provided .env.template
# Windows PowerShell
copy .env.template .env
# macOS/Linux
cp .env.template .env
  1. Setup environment variables based on your GCP Firebase cloud setup
VITE_FIREBASE_APIKEY=your_api_key
VITE_FIREBASE_AUTH_DOMAIN=your-auth-domain
VITE_FIREBASE_PROJECT_ID=your-project_id
VITE_FIREBASE_STORAGE_BUCKET=your_storage_bucket
VITE_FIREBASE_MESSAGE_SENDER_ID=your-message-sender-id
VITE_FIREBASE_APP_ID=your-firebase-id
VITE_FIREBASE_MEASUREMENT_ID=your-measurement-id

VITE_FIREBASE_DB_SHOPS=shops
VITE_FIREBASE_DB_ITEMS=items
VITE_FIREBASE_DB_PARTS=parts
VITE_FIREBASE_DB_SERVICES=services
VITE_FIREBASE_DB_COMPLETIONS=completions
VITE_FIREBASE_DB_SETTINGS=settings
VITE_FIREBASE_DB_USERS=users
VITE_FIREBASE_DB_ARCHIVE=archive
VITE_FIREBASE_DB_INVOICES=invoices
VITE_FIREBASE_DB_TRANSACTIONS=transactions
VITE_FIREBASE_DB_LEASES=leases
VITE_FIREBASE_DB_LEASE_COMPLETIONS=leaseCompletions

VITE_BASENAME=/
  1. Start the development server 🔥
npm run dev

Then open http://localhost:5173 in your browser.

  1. Build when you are ready
npm run build
  • For test build: npm run build:test
  • For production build: npm run build:prod

Contribute

There are many ways to contribute to StorageR.

License

MIT — use freely, modify locally, and share improvements.

About

Inventory and service management for SMBs. Firebase backend with React and Tailwind in a SaaS-friendly model.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published