Skip to content

Commit

Permalink
package updates
Browse files Browse the repository at this point in the history
Package dependency uplift
Changing steem to smoke
  • Loading branch information
smoke-indica committed Jun 30, 2020
1 parent 9419b9d commit 4da9a4a
Show file tree
Hide file tree
Showing 7 changed files with 15,874 additions and 482 deletions.
21 changes: 7 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Condenser


Condenser is the react.js web interface to the world's first and best blockchain-based social media platform, smoke.io. It uses [STEEM](https://github.com/steemit/steem), a blockchain powered by Graphene 2.0 technology to store JSON-based content for a plethora of web applications.
Condenser is the react.js web interface to the world's first and best blockchain-based social media platform, smoke.io. It uses [SMOKE](https://github.com/steemit/steem), a blockchain powered by Graphene 2.0 technology to store JSON-based content for a plethora of web applications.

## Why would I want to use Condenser (smoke.io front-end)?
* Learning how to build blockchain-based web applications using STEEM as a content storage mechanism in react.js
* Learning how to build blockchain-based web applications using SMOKE as a content storage mechanism in react.js
* Reviewing the inner workings of the smoke.io social media platform
* Assisting with software development for smoke.io

Expand Down Expand Up @@ -49,14 +49,7 @@ mkdir tmp

Install at least Node v7.5 if you don't already have it. We recommend using `nvm` to do this as it's both the simplest way to install and manage installed version(s) of node. If you need `nvm`, you can get it at [https://github.com/creationix/nvm](https://github.com/creationix/nvm).

Condenser is known to successfully build using node 7.5, npm 4.1.2, and yarn 1.1.0.

Using nvm, you would install like this:
```bash
nvm install v7.5
```

We use the yarn package manager instead of the default `npm`. There are multiple reasons for this, one being that we have `steem-js` built from source pulling the github repo as part of the build process and yarn supports this. This way the library that handles keys can be loaded by commit hash instead of a version name and cryptographically verified to be exactly what we expect it to be. Yarn can be installed with `npm`, but afterwards you will not need to use `npm` further.
We use the yarn package manager instead of the default `npm`. There are multiple reasons for this, one being that we have `smoke-js` built from source pulling the github repo as part of the build process and yarn supports this. This way the library that handles keys can be loaded by commit hash instead of a version name and cryptographically verified to be exactly what we expect it to be. Yarn can be installed with `npm`, but afterwards you will not need to use `npm` further.

```bash
npm install -g yarn
Expand All @@ -80,7 +73,7 @@ yarn run start

It will take quite a bit longer to start in this mode (~60s) as it needs to build and start the webpack-dev-server.

By default you will be connected to smoke.io's public steem node at `wss://steemd.steeemit.com`. This is actually on the real blockchain and you would use your regular account name and credentials to login - there is not an official separate testnet at this time. If you intend to run a full-fledged site relying on your own, we recommend looking into running a copy of `steemd` locally instead [https://github.com/steemit/steem](https://github.com/steemit/steem).
By default you will be connected to smoke.io's public steem node. This is actually on the real blockchain and you would use your regular account name and credentials to login - there is not an official separate testnet at this time. If you intend to run a full-fledged site relying on your own, we recommend looking into running a copy of `smoked` locally instead [https://github.com/smokenetwork/smoke](https://github.com/smokenetwork/smoke).

#### Configuration

Expand Down Expand Up @@ -113,7 +106,7 @@ Once set up, you can set the mysql server configuration option for condenser usi
Example:

```bash
export SDC_DATABASE_URL="mysql://root:[email protected]/steemit_dev"
export SDC_DATABASE_URL="mysql://root:[email protected]/smoke_dev"
```

Here are instructions for setting up a mysql server and running the necessary migrations by operating system:
Expand Down Expand Up @@ -146,10 +139,10 @@ GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
FLUSH PRIVILEGES;
```

Now launch mysql client and create steemit_dev database:
Now launch mysql client and create smoke_dev database:
```bash
mysql -u root
> create database steemit_dev;
> create database smoke_dev;
> quit
```

Expand Down
6 changes: 3 additions & 3 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
}
},
"server_session_secret": "exiKdyF+IwRIXJDmtGIl4vWUz4i3eVSISpfZoeYc0s4=",
"session_cookie_key": "stm-dev",
"session_key": "steemses",
"site_domain": "steemitdev.com",
"session_cookie_key": "smk-dev",
"session_key": "smokeses",
"site_domain": "smoke.io",
"tarantool": {
"host": "localhost",
"password": "",
Expand Down
2 changes: 1 addition & 1 deletion doc/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016 Smoke, Inc., and contributors.
Copyright (c) 2020 Smoke, Inc., and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
Loading

0 comments on commit 4da9a4a

Please sign in to comment.