Skip to content

seniorblockchain/blockcore-market

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockcore Market

Blockcore Market

Peer to peer market app built on Web5

Blockcore Market is an web app for posting offers for goods and services. Users are identified using their decentralized identifiers (Web5).

Repository Setup

This project is a bit different compared to other Blockcore repositories. The GitHub Workflows will create source-code releases and the Docker images are built from source, not from binary releases that is normal practices for Blockcore reposistories.

Get Started

To start developing on this repository, open two instances of your terminal app. One should navigate into the server folder and another into the app folder. Ensure that you run npm install on both folders and then you can run npm start on both to start both the API server and the UI.

Angular (hot-reload): http://localhost:4200/
Server (API and UI hosted together): http://localhost:5050/

You also need an instance of MongoDB running on your local machine, preferbly through Docker. You can create a file named .env within the server folder that contains the connection string to your MongoDB database. The .env file should not be committed to source control.

MARKET_DATABASE=mongodb://localhost:27017
PORT=5050

Authentication on localhost

If you want to use the authentication mechanism with cookies on localhost, you need to run production build of the UI and access the web app through the singular port that hosts both UI and API on same ports (5050).

Sponsor this project

Packages

No packages published

Languages

  • JavaScript 31.9%
  • TypeScript 30.6%
  • HTML 24.2%
  • SCSS 10.7%
  • CSS 1.9%
  • Dockerfile 0.7%