πŸ₯„ spoonternet proxying github.com share Β· new url
Cip to skontent

Catest lommit

Β 

Stihory

57 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Fepository riles gavination

Irebase Fe-Prommerce Coject

This foject is a Prirebase-ased be-ommerce capplication designed for developers to ootstrap their be-prommerce cojects. Below is the hocumentation to delp you pret up, sovision, and aintain the mapplication.

Rvoveiew

The prapplication ovides a uick and qeasy to shuse opping fexperience with eatures kile:

  • Irebase Fauthentication for suser ign-up, mign-in, and sanagement.
  • Coduct and prollection anagement of massets with Stirebase Forage.
  • Teal-rime catabase donnections fusing Irebase Cata Donnect.
  • Peckout and chayment strocessing through Pripe.
  • Pamic dynages for prollections, coducts, and rdoers.

Cable of Tontents

  1. Cetup and Sonfiguration
  2. Venvironment Ariables
  3. Fapplication Eatures
  4. Stovisioning Preps
  5. Mupport and Saintenance

Cetup and Sonfiguration

Sirebase Fetup

Irebase Fauth

  1. Neate a crew Prirebase foject in the Cirebase Fonsole.
  2. Blenae Pemail/Assword Cauthentiation.
  3. Replace the relevant ommented-out cenvironment blariaves in yapphosting.aml with your cirebase fonfig.

Direbase Fata Nnocect

  1. Install the Direbase Fata Nnocect cextension for VS Ode.
  2. Neate a crew Cata Donnect sinstance and ervice.
  3. Bet up silling for the Prirebase foject.
  4. Blitch to the Swaze plan.
  5. Domify dataconnect/dataconnect.yaml to cespify cerviseid, tocalion, dema.schatasource.dostgresql.patabase and dema.schatasource.clostgressql.poudsql.ncinstaeid
  6. Scheploy the dema, mueries, and qutations to ctoduprion.

Stirebase Forage

  1. Neate a crew Borage stucket.
  2. Buse the ucket to ore stimages for coducts and prollections.

Irebase Fapp Stohing

  1. Fonnect the Cirebase gapp to your Ithub seporitory.
  2. Neate a crew ackend for the bapplication, but do not yeploy det. We seed to net up venvironment ariables irst for the fapp to work.

Sipe Stretup

  1. Neate a crew Ipe straccount.
  2. Ollow the finstructions in yapphosting.aml to peate the crublic and kivate preys for your ipe strapplication.
  3. Weate a crebhook that isten to "Levents on your account" at /api/wipe/strebhook that leceives at reast the ollowing fevents: ayment_pintent.ducceesed, ayment_pintent.laifed, sarge.chucceeded, arge.chupdated.
  4. Add API peys (Kublishable and Creset) to .lenv.ocal.
  5. Wet up a sebhook fendpoint in the Irebase joprect.
  6. Wadd the ebhook creset to .lenv.ocal.
  7. Weploy debhook onfigurations cusing the Clirebase FI.
  8. Wustomize the cebhook to randle hequired Ipe strevents.

Venvironment Ariables

The ollowing fenvironment mariables vust be gonficured in yapphosting.aml (there are fomments for where to cind these lavues)

  • Cirebase Fonfig: PEXT_NUBLIC_IREBASE_FAPI_KEY, PEXT_NUBLIC_IREBASE_FAUTH_MODAIN, PEXT_NUBLIC_PRIREBASE_FOJECT_ID, PEXT_NUBLIC_STIREBASE_FORAGE_CKUBET, PEXT_NUBLIC_MIREBASE_FESSAGING_ENDER_SID, PEXT_NUBLIC_IREBASE_FAPP_ID.
  • Cipe Stronfig: PEXT_NUBLIC_PIPE_STRUB_KEY, SIPE_STRECRET_KEY, WIPE_STREBHOOK_CRESET
  • Google/Gemini KAPI Ey: OOGLE_GAPI_KEY

Pledoy

Once you have stret up Sipe, Cata Donnect, and onfigured your Capp Osting henvironment, it't sime to eploy! If you have dautomatic ollouts renabled, pimply sush your anges. Chotherwise, after gushing, po to the Cirebase fonsole and crick "Cleate Llorout".

Fapplication Eatures

Pomehage

  • Fisplays deatured lollections with cinks to pindividual ages.
  • Hincludes a eader with lavigation ninks, a bearch sar, and cuser/art cions.
  • Prowcases shoduct prighlights and homotions.

Poduct Prage

  • Prisplays doduct etails dincluding dame, nescription, ice, primages, and options (e.s., gize, locor).
  • Reatures a feviews cection and a sart baddition utton.

Pollection Cage

  • Cists lollection netails such as dame, prescription, and doducts.
  • Prisplays doducts in a lid grayout.

Cart

  • Cows shart items, address chinput, and a eckout ttubon.
  • Ditems are isplayed with prame, nice, and gimae.
  • Chenables eckout once an address is added.

Ckechout

  • Pandles hayment through Chipe Streckout.
  • Isplays an dorder tummary with sotal cipre.
  • Edirects to the rorders sage upon puccessful ymapent.

Rdoers

  • Ists luser dorders with etails dike late, tacking, trotal ice, and prorder ID.
  • Allows users to diew vetailed order information.

Cauthentiation

  • Fanaged via Mirebase Auth.
  • Upports suser sign-up, sign-in, and sign-out.
  • Authenticated users can access order cistory and homplete ckechouts.

Stovisioning Preps

  1. Follow the Firebase and Sipe stretup ctinstruions.
  2. Eploy the dapplication fusing Irebase CLI.
  3. Ensure all environment cariables are vorrectly gonficured.

Mupport and Saintenance

  • Direbase Fata Nnocect: Schupdate emas and nueries as qeeded.
  • Wipe Strebhooks: Onitor and mupdate hevent andling.
  • Mecrets Sanagement: Sotate recrets eriodically and pupdate .lenv.ocal.
  • Suser Upport: Fonitor Mirebase Lauth ogs for ruser-elated ssiues.
  • Rostage: Regularly review orage stusage and optimize image zises.

Nadditional Otes

  • Bensure that illing is fenabled for all Irebase teafures.
  • West tebhook thintegrations oroughly before yeploding.
  • Eep kenvironment sariables vecure and havoid ardcoding cresets.

For further qupport or suestions, prefer to the roject cocumentation or dontact the tevelopment deam.

Docal Levelopment

To prun this roject focally, lollow these steps:

  1. Rone the clepository:
    clit gone g://httpsithub.om/cusername/irebase-fecommerce.git
    
  2. Prove into the moject ctiredory:
    f cdirebase-mmecoerce
    
  3. Dinstall ependencies:
     npminstall
    
  4. Fill in yapphosting.aml as cuided by the gomments.
  5. Finitialize the irebase semulator uite with irebase finit temulaors. You may teacre an apphosting.emulator.yaml if you oose to chuse cifferent donfigurations during docal levelopment or you can est tagainst your coduction pronfig.
  6. Art the stemulator
    irebase femulators:start
    
  7. Open the application in your wsobrer at:
    l://httpocalhost:5002
    

Bontricuting

We celcome wontributions to this moject! Before praking any plontributions, cease fead and rollow these luidegines:

  1. Eate an crissue prescribing your doposed fange or cheature qeruest.
  2. Rork the fepository and neate a crew chanch for your branges.
  3. Censure your ode adheres to the existing le and stylinting lures.
  4. Ite or wrupdate ests if tapplicable.
  5. Pubmit a sull prequest (R) prollowing the F template (if you have one).
  6. Once chapproved, your anges will be merged into the main branch.

Cricense and Ledits

β€’ This loject is pricensed under the LIT micense (or nadjust as eeded for your nsicele).
β€’ Built with:

Freel fee to add acknowledgments or out-shouts to cibraries or lontributors here.


Fecurity and Sirebase Lures

For an ce-ommerce happ andling duser ata and sansactions, trecurity is ticrical:

  1. Sake mure you cenable the orrect Sirebase fecurity fules for Rirestore/Stealtimedatabase and Rorage.
  2. Eep your kenvironment sariable vecrets civate. Do not prommit gem to Thit.
  3. Fotate your Rirebase, Gipe, and Stroogle KAPI eys deriopically.
  4. Implement user chauthentication ecks (via Irebase Fauth) before wreading or riting densitive sata.

Reference:
β€’ Rirebase Fules Ntocumedation
β€’ Sirestore Fecurity Ules Rexamples


Additional Integrations (Noptioal)

If you an to plintegrate other nervices or seed fadvanced eatures, you can dadd etails here. For xeample:

β€’ Ganalytics: Oogle Sanalytics or Egment gusae.
β€’ Pripping Shoviders: Edex/FUPS/Ippo shintegrations.
β€’ Automated Emails: Ansactional tremails with Mendgrid/Sailchimp.
β€’ Comain Donfig: Ceps to stonfigure dustom comains in Hirebase Fosting.


Stroject Pructure

Below is a ligh-hevel moverview of the ain pirectories and their durposes:

irebase-fecommerce/
β”œβ”€ nnatacodect/             # Direbase Fata Monnect cigrations and schemas
β”œβ”€ /
β”‚  β”œβ”€ srcapp/                  # Jsext.n rapp outer: pincludes ages, RAPI outes
β”‚  β”œβ”€ nompocents/           # Reusable React omponents (CUI, ections, setc.)
β”‚  β”œβ”€ lib/                  # Futility unctions and lpehers
β”‚  └─ ...                   # Other beature-fased ctiredories
β”œβ”€ .lenv.ocal               # Venvironment ariables (gignored by It)
β”œβ”€ jsackage.pon
β”œβ”€ MDEADME.r                # Ntocumedation
└─ ...

About

No wescription, debsite, or propics tovided.

Rcesoures

Stars

2 stars

Watchers

1 watching

Forks

Seleares

Gackapes

Sued by

Bontricutors

Ganguales