-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update(readme): tidy up some information * fix(readme): commit updated readme * update(readme): added links to `periodum` * update(commands): updated desktop building commands
- Loading branch information
1 parent
0e2653a
commit c22b71d
Showing
5 changed files
with
82 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,89 @@ | ||
# The Periodic Table | ||
|
||
Credit to [Evrim Ağacı](https://github.com/evrimagaci) as most of the data is scraped from it | ||
Major credit to [Evrim Ağacı](https://github.com/evrimagaci) as most of the data is scraped from [periodum](https://github.com/evrimagaci/periodum) | ||
|
||
## Preview | ||
# Structure | ||
|
||
#### Home Page | ||
This project use monorepo with pnpm workspace, the web app and desktop app are in `apps` respectively | ||
|
||
![Home](test/snapshot/snapshot-images/pc/home.png 'Home') | ||
# Preview | ||
|
||
#### Compounds Page | ||
Home Page | ||
|
||
![Compounds](test/snapshot/snapshot-images/pc/compounds.png 'Compounds') | ||
![Home](apps/web/test/snapshot/snapshot-images/pc/home.png 'Home') | ||
|
||
#### Element Page (too long to show full page) | ||
Compounds Page | ||
|
||
![Element](docs/element.png 'Element') | ||
![Compounds](apps/web/test/snapshot/snapshot-images/pc/compounds.png 'Compounds') | ||
|
||
#### Error Page | ||
Element Page (too long to show full page) | ||
|
||
![error](test/snapshot/snapshot-images/pc/error.png 'Error') | ||
![Element](apps/web/docs/element.png 'Element') | ||
|
||
## Tech Used | ||
Error Page | ||
|
||
![error](apps/web/test/snapshot/snapshot-images/pc/error.png 'Error') | ||
|
||
# Tech Used | ||
|
||
| Aspect | Name | | ||
| ---------------------- | -------------- | | ||
| Development Language | TypeScipt | | ||
| Scripting Language | TypeScipt | | ||
| Testing | Vitest | | ||
| Styling | Joy UI | | ||
| Styling | Mui Joy | | ||
| Framework | NextJS | | ||
| Build Automation Tool | Make | | ||
| Dependency Management | Pnpm | | ||
| Continuous Integration | GitHub Actions | | ||
| Desktop Application | Tauri | | ||
|
||
## How to build this app? | ||
# How to build this app? | ||
|
||
_*Make sure you have `pnpm` and `make` available in your system*_ | ||
|
||
### Environment Variables | ||
You can install pnpm with `npm i -g pnpm`, if you have npm in your pc, otherwise, install npm [here](https://nodejs.org/en/download/current) | ||
|
||
For Mac and Linux, make is available, but for Windows, you can install make with `choco install make` | ||
|
||
#### Development and Testing | ||
Environment Variables | ||
|
||
Run the following command | ||
`apps/web/config/.env.production` does not exists as it's not committed, so any `make` commands related to production will not, including but are not limited to `make build-production`, `make copy-env-production`, `make build-executable-production` | ||
|
||
`make copy-env-[development/testing]` | ||
Rest assured that you can still build an optimised & minimised version of this application without production configuration provided | ||
|
||
#### Make Commands | ||
Make Commands | ||
|
||
_*Below are the listed commands that you can use to build/develop/test this app*_ | ||
|
||
| Command | Usage | | ||
| ------------------------------------------------- | ------------------------------------------------- | | ||
| make start | Start the bundled app | | ||
| make generate | Generate the file needed | | ||
| make start-(development OR staging OR production) | Start development | | ||
| make build-(development OR staging OR production) | Bundle and build the app | | ||
| make deploy-(staging OR production) | Bundle, build and deploy the app | | ||
| make install | Install all dependencies | | ||
| make test | Run all test code | | ||
| make typecheck | Run typechecking for source code | | ||
| make lint | Run linter for source and test code | | ||
| make format-check | Run prettier to check source and test code format | | ||
| make format | Run prettier to format source and test code | | ||
2. Web in `apps/web` | ||
|
||
| Command | Usage | | ||
| ---------------------------------------------------- | ------------------------------------------------- | | ||
| make start | Start the bundled app | | ||
| make generate | Generate the file needed | | ||
| make start-(development OR testing OR production) | Start development | | ||
| make build-(development OR testing OR production) | Bundle and build the app | | ||
| make copy-env-(development OR testing OR production) | Copy environment variables to `.env` | | ||
| make install | Install all dependencies | | ||
| make test | Run all test code | | ||
| make typecheck | Run typechecking for source code | | ||
| make lint | Run linter for source and test code | | ||
| make format-check | Run prettier to check source and test code format | | ||
| make format-write | Run prettier to format source and test code | | ||
|
||
3. Desktop in `apps/desktop` | ||
|
||
| Command | Usage | | ||
| --------------------- | ------------------------------------------------- | | ||
| make build-production | Bundle and build the app | | ||
| make format-check | Run prettier to check source and test code format | | ||
| make format-write | Run prettier to format source and test code | | ||
|
||
_*You can run the app without setting up the app for demo purpose, the execution (windows/mac/linux) is in `apps/desktop/src-tauri/target/release/periotable(.exe?)`*_ | ||
|
||
But if you want to properly install the app, you must run the setup file as shown in terminal after building it | ||
|
||
# Generated files | ||
|
||
The data for periodic tables are not committed, if you need it, you let me know. For now you can just raise an issue if you need it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
[package] | ||
name = "nextauri" | ||
name = "periotable" | ||
version = "0.0.0" | ||
description = "A Tauri App" | ||
authors = ["you"] | ||
license = "" | ||
repository = "" | ||
edition = "2021" | ||
rust-version = "1.57" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
description = "A UI/UX friendly desktop application to learn more about Modern Periodic Table of Elements" | ||
authors = ["PoolOfDeath20 <[email protected]>"] | ||
description ="The CLI Application of Gitignored. Provide A Faster Way to Generate .gitignore File via Caching" | ||
repository = "https://github.com/GervinFung/periotable" | ||
readme = "README.md" | ||
homepage = "https://periotable.vercel.app" | ||
license-file = "LICENSE" | ||
|
||
[build-dependencies] | ||
tauri-build = { version = "1.5", features = [] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters