Start DS on your local - Gapminder/dollar-street-framework GitHub Wiki
For run DS on your local machine
1. Please make sure you have imagemagick and graphicsmagick installed.
sudo apt-get install -y imagemagick graphicsmagick
2. Please make sure you have installed webpack for CMS
npm i [email protected] -g
local.ds.json
in credentials
folder in the project root. File name consist of MODE_ENV-NODE_ENV.json
3. Put the actual dollar-street/
...
credentials/
...
local.ds.json
...
...
4. [optional] Run MongoDB on your local machine according to your operating system:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
AND
restore the database from the dump file:
mongorestore -db dollarstreet --drop --gzip --archive=./dollarstreet.tar.gz
credentials/local.ds.json
config
5. [optional] Set MONGODB_URL in {
...
"MONGODB_URL": "VALID_MONGO_URL",
...
}
6. Set NODE_ENV MODE_ENV environtment variables
ds-pages
run next npm scriptes:
7. To run npm run build:client:local:ds
npm run build:server
npm run server
npm run build:server-puppeteer
npm run server-puppeteer
ds-cms
run next npm scripts:
8. To run npm run build:client-cms
npm run server-cms