You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chromatic for providing component screenshot testing
Embed.ly for bringing npmcharts embeds to Medium and Reddit
All the open source projects that have linked their READMEs' download-count badges to npmcharts 🙏
Instructions to set up project locally
Fork this repository.
Go to your forked copy of this repository. It will be here: https://github.com/<your-github-username>/npmcharts.com.
On your PC, open terminal and run: git clone https://github.com/<your-github-username>/npmcharts.com.git. A folder called npmcharts.com will be created.
Run cd npmcharts.com and then yarn. This will take some time as puppeteer will install chromium (150MB).
Now, cd packages/server and run yarn again.
Run cd ../../ and then npm start. You are all set! The project will be running on port 3896.
Testing
To test your code, open your browser and go to: https://localhost:3896/chart-image/vue.png. If everything is fine, you should see a chart(takes a few seconds to load; it is normal).
Hidden features
A few things that might not be apparent just by looking at the site
Charts can be embedded in Medium articles
Tweets of a chart should contain previews of the actual chart