Difference between revisions of "Setting up dev environment"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | ==Set up local development environment== | ||
* Install Node.js. You need at least node version 7.6 because the async is supported since that version (https://www.infoq.com/news/2017/02/node-76-async-await) and it is used | * Install Node.js. You need at least node version 7.6 because the async is supported since that version (https://www.infoq.com/news/2017/02/node-76-async-await) and it is used | ||
* Install npm | * Install npm | ||
Line 12: | Line 13: | ||
** npm install | ** npm install | ||
** npm run dev | ** npm run dev | ||
+ | |||
+ | ==Wikimedia and project accounts== | ||
+ | # Get a '''Wikimedia account''' (the same account for all Wikipedias, Wikimedia Commons, Wikidata etc.) e.g. https://www.wikidata.org/wiki/Special:UserLogin | ||
+ | # Get the '''Wikimedia developer account''' > [https://wikitech.wikimedia.org/wiki/Help:Create_a_Wikimedia_developer_account#VPS_and_General_Users Registration instructions under "VPS and General Users"]. The same key and password let you access The Wikimedia Cloud Services at https://wikitech.wikimedia.org and the git repositories located at https://gerrit.wikimedia.org/. You are also creating a separate '''Shell account'''. Read also: | ||
+ | #* https://wikitech.wikimedia.org/wiki/Main_Page | ||
+ | #* https://wikitech.wikimedia.org/wiki/Help:Access | ||
+ | # Create an account in Wikimedia Phabricator | ||
+ | # Ask to join the codebase in GitHub | ||
+ | # Ask for an account to edit this wiki | ||
{{design-nav}} | {{design-nav}} |
Revision as of 04:02, 15 August 2019
Set up local development environment
- Install Node.js. You need at least node version 7.6 because the async is supported since that version (https://www.infoq.com/news/2017/02/node-76-async-await) and it is used
- Install npm
- Clone the repositories
- Edit wikidocumentaries-ui/src/store/store.js. Change the contant const BASE_URL to the local address by commenting out the server address:
const BASE_URL = "http://localhost:3000/" //const BASE_URL = "https://wikidocumentaries-api.wmflabs.org/"
- Go to each directory and run
- npm install
- npm run dev
Wikimedia and project accounts
- Get a Wikimedia account (the same account for all Wikipedias, Wikimedia Commons, Wikidata etc.) e.g. https://www.wikidata.org/wiki/Special:UserLogin
- Get the Wikimedia developer account > Registration instructions under "VPS and General Users". The same key and password let you access The Wikimedia Cloud Services at https://wikitech.wikimedia.org and the git repositories located at https://gerrit.wikimedia.org/. You are also creating a separate Shell account. Read also:
- Create an account in Wikimedia Phabricator
- Ask to join the codebase in GitHub
- Ask for an account to edit this wiki
About | Technology | Design | Content modules | Tool pages | Projects |
Status
Wikidocumentaries Slack |
Setting up dev environment |
Components |
Active modules Module ideas |
Visual editor | Central Park Archives |