Discover Japan's Population Trend with Vue3 + Vite!
Choose your favorite prefecture and explore Japan's latest population trend in this project. Learn more about the country's changing demographics!
Live site: https://population-of-japan.vercel.app/
- VueJS (Vue3)
- Vite
- Pinia for state management
- RESAS API for getting population data in Japan
- Highcharts for interactive graph
- TypeScript and Vue tsc for static analysis
- ESLint for syntax checking and code styling
Follow these steps to set up and run the project locally.
- Node.js (https://nodejs.org) should be installed on your machine.
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
- Clone the repository to your local machine.
git clone https://github.com/mayl730/population-of-japan
- Install the dependencies using npm.
npm install
-
Sign up and get your API key at here: RESAS API
-
Setup your environment file and name it as
.env
. env file template
Put your own API key at the environment file:
VITE_API_KEY=XXXXXXXXXXXXXXXXXXXXXX
- Running the Development Server
npm run dev
npm run build
: Build the production-ready code in the dist folder.
- Display error messages on the website during failure states.
- Conduct tests using Cypress.