Instructions for Installing a Steemit.com Instance (For Developers Interested in Working on Changes to Steemit.com)
steemit·@timcliff·
0.000 HBDInstructions for Installing a Steemit.com Instance (For Developers Interested in Working on Changes to Steemit.com)
If you are interested in making changes to the Steemit.com website, you will need to setup a local instance of the website to work on. Here are the instructions to do so! The steps below are basically the instructions from the <a href="https://github.com/steemit/steemit.com">Steemit.com GitHub Repository</a>, with some minor variations / updates based on some hurdles that I ran into and overcame when I was following the steps. I have run these multiple times on a clean Ubuntu 16.04 system, and they should work exactly "as-is" on Ubuntu 16.04. There are also variations in the <a href="https://github.com/steemit/steemit.com">GitHub Repo</a> for OS X, and Debian based Linux. ## Clone Steemit.com from GitHub ``` git clone https://github.com/steemit/steemit.com ``` ## Create a "tmp" directory ``` cd steemit.com mkdir tmp ``` ## Download and Load NVM ``` curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" ``` ## Verify NVM is running ``` command -v nvm # verify ``` (It should output nvm) ## Install Dependencies ``` nvm install v6 npm install npm install -g babel-cli ``` ## Create Config File ``` cd config cp steem-example.json steem-dev.json ``` ## Generate a Secret String ``` node > crypto.randomBytes(32).toString('base64') > .exit ``` (Copy the string that was output.) (It will look something like this: MQd4aPyBhnHhjeEoqKb7m1QFVuTTYZFtWyGkfejgSbo=) ## Save your secret string to the config file ``` nano steem-dev.json ``` 1. Choose and enter a MySQL root password (you will use this later) 2. Paste the secret string in for 'server_session_secret' http://i.imgsafe.org/953c48a22f.png ## INSTALL SQL ``` cd .. sudo apt-get update sudo apt-get install mysql-server (Enter the MySQL root PW that you used above when prompted) ``` ## Run MySQL ``` mysql -u root -p (enter password) ``` ## Create the "steemit_dev" database ``` > create database steemit_dev; > quit ``` ## Install sequelize-cli globally ``` npm install -g sequelize sequelize-cli pm2 mysql ``` ## Configure the MySQL Password in the config file ``` cd db cd config nano config.json (enter pw) ``` ## Run sequelize db:migrate in db/ directory ``` cd .. sequelize db:migrate ``` ## Launch Steemit.com ``` cd .. npm start ``` ## Wait until it shows "Application started on port 3002". http://i.imgsafe.org/952af6445c.png ## Connect to your local steemit.com instance! ``` http://123.456.789.001:3002/ ``` (Use the IP address of your system) ## That's it! If you have any questions, let me know and I will do my best to help :-)
👍 timcliff, krnel, nigelmarkdias, virtualgrowth, furion, asshole, thegame, steembets, steemland.com, steemprentice, matrixdweller, thunderbird, meerkat, wang, jdenismusic, thedeplorable1, dubi, dongu, strangerarray, very, coinbitgold, ameliawheat, macchicken, kyusho, djvidov, alinamarin, igster, toyblackhat, quitothewalrus, alol, originate, mynameisbrian, cardboard, jamesc, gutzofter, sqube, mione, samstonehill, immortalfame, timbot606, countryfolk1, jphamer1, mokluc, selwi, ebryans, tamersameeh, cryptoctopus, juandemarte, nanzo-scoop, chappers, mummyimperfect, ak2020, emily-cook, mafeeva, sonsy, meanpeoplesuck, jasonpay1, dimimp, thebatchman, thebatchman1, kpine, mondeja, cub1, jamesbrown, yogimystic, vladtheimpaler, juniper, properremake, cmp2020, fireworks, discipline, coonhunter, poiplu, cloudstrife, steemonme, leaderofleaders, barneyrubble, etotheipi, centeredsoul, rightrythm, ted1984, smokinhot, chadmoore, batonrouge, onlygooddeals, enrichened, barretwallace, dontbetrippin, glenyven23, arama, windows23, steemquotient, alphalion, loudnoises, moonlanding, smoothcriminal, eternalfreedom, steemitalpha, lockandkeys, sweetonion, copyandpaste, juices, countdracula, pawntod4, undertale, steemaccess, riverhead, cryptofunk, opheliafu, bottymcbotface, eem, fyrstikken, deviedev, cryptomancer, applecrisp, gammagooblin, carlidos, andrewawerdna, lifeisamazing, psych101, maxedoutstats, karenmckersie, ap2002, elena000, merej99, vortac, gas7uazz, mctiller, lindo, vegascomic, piranhax, oldtimer, triplep, collabornation, reisman, timothyb, colin-porter, lemouth, gasgeverij, profitgenerator, ninkhisibir, soulsurfer, celsius100, steem1653, jademont, fyrst-witness, dajohns1420, steemspeak, robrigo, pollux.one, readersdigest, bellastella, hannixx42, steemgarden, pets, mrsteemgarden, freebornangel, faded-gravity, will-zewe, clonewarz, themagus, juanmiguelsalas, trans-juanmi, dailybitcoinnews, exyle, krabgat, bryan-imhoff, sweetsssj, spottyproduction, rok-sivante, juliosalas, neptun, steemcake, bue-witness, bue, mini, healthcare, boy, daniel.pan, bunny, moon, helen.tan, craigslist, transisto, infovore, nxtblg, helikopterben, craigwilliamz, ashleywilliamz, slowwalker, rawnetics, geoffrey, bitcoiner, vladon, doitvoluntarily, knircky, marius19, jocelyn, biodragon, fabien, joseph, idol, berkah, picokernel, zulhelmi, luka.skubonja, barrydutton, norbu, roguelike, jesta, vir, wagnertamanaha, pfunk, sergey44, leongkhan, greatdabu, carlos-cabeza, ace108, fbechstein, giantbear, alexpmorris, ihashfury, jason, catto000, lrock, dez1337, morning, lukestokes, albertogm, ipumba, kevinwong, sigmajin, jejujinfarm, stephenkendal, etcmike, ianstrat, gtg, dragosroua, raluca, felixxx, nataliia, jlufer, murh, sergeykitayev, loreennaa, grandpere, astral, kennyskitchen, nik69, germanlifestyle, tommyhansen, asmolokalo, betamusic, bitcoinparadise, luckyluk, kurtbeil, mindfreak, mammasitta, steemcenterwiki, germansailor, shaunmza, ausbitbank, mahdiyari, tinh,