Wikipedia Pageviews is a single-page application that allows users to pick and date and see which Wikipedia pages were viewed the most that day. They can also save articles they want to come back to as pins.
Created by @AlyssaKirstine
Wikipedia Pageviews was built using the Gatsby framework and deployed using Netlify.
See it live 😍 https://wikipedia-pageviews.netlify.app/
- The homepage is setup in
src/pages/index.tsx
. - Testing
- This repo is setup to support Jest tests. Check out an example test in
src/utils/article/
.
- This repo is setup to support Jest tests. Check out an example test in
- Code formatting
- This repo uses ESLint and Prettier to format the code automatically before any commits are made.
-
Setup your local copy of this repo.
Use
git clone
to clone this repo to your local computer.Using HTTPS:
git clone https://github.com/AlyssaKirstine/wikipedia-pageviews.git
Using SSH:
git clone [email protected]:AlyssaKirstine/wikipedia-pageviews.git
-
Install node modules.
Navigate to the project directory and install node modules.
cd wikipedia-pageviews/ yarn install
-
Build site
To start a development build, run
yarn start
.yarn start
To start a production build, run
yarn build
. This will generate bundle files via webpack in yourpublic
root folder. Then runyarn serve
to serve.yarn build yarn serve
-
Check it out!
Visit the applicable URL in your browser of choice.
Development build:
http://localhost:8000
Production build:
http://localhost:9000