mirror of
https://github.com/status-im/dreddit-dapp.git
synced 2025-02-23 11:48:23 +00:00
API
Requirements
- Nodejs LTS version >= 8.1.14
- MongoDB
Installation
- Clone the repository and checkout the correct branch
git clone https://github.com/status-im/dreddit-dapp.git
cd dreddit-dapp
git checkout ethberlin
npm install
-
If you want to change the DB server connection string, edit
./api/main.js
-
Build the service with
npm run-script build
-
Start the service by running
npm run-script serve
If you're a developer, you might want to execute
npm start
instead of the previous instruction. This will reload the server when you make changes, but it's not recommended for production usage
DAPP
Requirements
- Embark (latest version is recommended)
- IPFS
Installation
- Clone the repository and checkout the correct branch
git clone https://github.com/status-im/dreddit-dapp.git
cd dreddit-dapp
git checkout ethberlin
npm install
-
Edit
./app/js/config.js
to set the URL of the restful service -
embark run
Languages
JavaScript
97.4%
HTML
2.3%
CSS
0.3%