This project is an interactive periodic table of elements, built using Vue 3 π οΈ. It utilizes modern web technologies and tools to provide a rich user experience with reactive components and state management.
The Periodic Table App is deployed and available live on GitHub Pages. You can interact with the live application by visiting the following URL:
This deployment showcases the latest stable version of the app. Feel free to explore the interactive periodic table and discover more about the elements!
For details on how this app is deployed using TypeScript, GitHub Actions, and GitHub Pages, check out my Medium article: Deploying a Vue 3 App with Vite, TypeScript, and GitHub Actions to GitHub Pages
-
Core:
- Vue 3 π for the frontend framework.
- Pinia π¦ for state management.
- Vue Router π¦ for SPA routing.
-
Styling:
- Bootstrap π¨ for responsive UI components and layout.
-
Development:
- Vite β‘ as the build tool and development server.
-
Testing:
- Jest π for unit testing, ensuring that individual components work as expected.
- Playwright π for end-to-end testing, simulating user interactions and verifying the app's behavior in a browser environment.
- Lighthouse π for performance and quality auditing, providing insights into how the app can be optimized for speed, accessibility, and SEO.
-
Code Quality:
- ESLint π§Ή for linting.
- Prettier π¨ for code formatting.
-
TypeScript:
- Used throughout the project for type safety π‘οΈ.
-
CI/CD:
- GitHub Actions π for automating linting, building, and test runs.
-
Utilities:
- Husky πΆ for pre-commit hooks.
- Lint-Staged π© for staged files linting.
We expect all contributors to adhere to our Code of Conduct when participating in our project. Please review it before getting involved.
Follow these steps to set up the project on your local machine and get started with development.
-
Clone the repository:
Get the code on your local machine by cloning the repository and then navigate to the project directory:
git clone https://github.com/Jagoda11/periodic-table-app.git cd periodic-table-app
-
Install dependencies:
Install the necessary project dependencies to get started with development:
npm install
Here's a breakdown of the main npm scripts you'll use to develop, test, and audit the Periodic Table App:
-
Local Development Server:
npm run dev
: π Starts the Vite development server for local development athttp://localhost:3000/Periodic-Table-App/
. Ideal for your day-to-day development activities.
-
Building for Production:
npm run build
: ποΈ Compiles and minifies the application for production, ensuring optimal performance.
-
Running Unit Tests:
npm run test
: π§ͺ Executes the Jest test suites to validate the functionality of individual components.
-
Performing Lighthouse Audits:
npm run audit
: π Conducts a Lighthouse audit on your local server athttp://localhost:3000
, offering insights into the app's performance and quality.
-
End-to-End Testing:
npm run test:e2e:concurrently
: π€ Starts a separate server for end-to-end testing onhttp://localhost:3001
and runs Playwright tests. This ensures a clean, isolated environment for accurate testing.
By following these instructions and using the scripts provided, you'll be able to effectively develop, test, and optimize your Periodic Table App. Happy coding! π
- License π: For more information on how you can use this project, see the LICENSE.md file.
- Collaboration π₯: If you're interested in contributing to the project, please review our CONTRIBUTION.md guide for details on how to get started.
This project utilizes various open-source libraries and frameworks. We extend our gratitude π to the contributors of these projects.