/dshop

Dezentral Shop Application

Primary LanguageSvelteMIT LicenseMIT


open marketplace apps

Open marketplace apps are decentralized open source apps for smart cities and local communities.

Discord

IntroductionWarningUsagePlanned MilestonesRoadmapJoining the discussion


DShop

Dezentral Shop Application

🎯 Introduction

This is a monorepo to create a decentralized eCommerce Shop written, for now in Javascript.

Warning:

This application is currently under development and is not yet ready to be used. It is currently feature incomplete and cannot be considered alpha.

👆 Usage

💫 Clone and Install

When building for the first time, ensure to install dependencies first.

git clone https://github.com/open-marketplace-applications/dshop
cd dshop
npm install
cd frontend
npm install

🌱 Development

You need to run the backend and the frontend in a seperate terminal.

Run this in the root folder:

npm run dev

And run this in the /frontend folder:

npm run dev

Open your browser and open http://localhost:3000

Be sure your MongoDB is running and your environment variables are set.

Running MongoDB

The easiest way to run the databse is with docker.

docker-compose up -d

environment variables

Example Env File

MAX_PAYMENT_TIME=4320
JWT_SECRET = "TESTTEST42"
MONGO_URL="mongodb://localhost:27017/dshop-store"
PAYPAL_MODE='sandbox'
PAYPAL_CLIENT_ID=''
PAYPAL_CLIENT_SECRET=''
PORT=4000
MAX_AMOUNT=500
NODE_ENV=dev
WEBHOOK_URL=""
SENDGRID_USERNAME=""
SENDGRID_PASSWORD=""
debug=full
SH_PASSWORD="your-hardcore-stronghold-password"

🚀 Production

npm run build
npm start

💬 Joining the discussion

If you want to get involved in discussions about this application, or you're looking for support, go to the #anna channel on our Discord.