Front end for the Accord's Library website. Accord's Library is a archival project focused on the works of Yoko Taro, and the Drakegard & NieR universes.
Go to file
DrMint 2614ca1ac9
Update node.js.yml
2022-03-28 12:59:25 +02:00
.github/workflows Update node.js.yml 2022-03-28 12:59:25 +02:00
public Added a sitemap system 2022-03-28 11:57:58 +02:00
src Fixed button not working if no href 2022-03-28 12:57:30 +02:00
testing_logs Added testing and display recorders info 2022-02-27 08:17:58 +01:00
.eslintignore Applied more lint rules and fixed the code accordingly 2022-03-27 17:01:14 +02:00
.eslintrc.js Applied more lint rules and fixed the code accordingly 2022-03-27 17:01:14 +02:00
.gitignore Added testing and display recorders info 2022-02-27 08:17:58 +01:00
.hintrc Applied more lint rules and fixed the code accordingly 2022-03-27 17:01:14 +02:00
.prettierignore Added prettier ignore config 2022-03-13 15:49:04 +01:00
LICENSE Added stuff 2021-11-04 12:45:18 +01:00
README.md Merge pull request #16 from Accords-Library/develop 2022-03-23 16:49:16 +01:00
next-env.d.ts Added animation to tooltip opening closing 2022-03-13 15:34:51 +01:00
next-sitemap.js Added a sitemap system 2022-03-28 11:57:58 +02:00
next.config.js Added portuguese 2022-03-20 13:19:27 +01:00
package-lock.json Added a sitemap system 2022-03-28 11:57:58 +02:00
package.json Added a sitemap system 2022-03-28 11:57:58 +02:00
postcss.config.js Ran prettier on more file type 2022-03-13 15:56:03 +01:00
run_accords_build.sh Added testing and display recorders info 2022-02-27 08:17:58 +01:00
run_accords_dev.sh Changed port of the dev web server 2022-03-04 13:11:44 +01:00
run_accords_prettier.sh Ran prettier on more file type 2022-03-13 15:56:03 +01:00
run_accords_prod.sh Tested deployment 2022-02-24 13:25:43 +01:00
run_accords_testing.sh Disable testing log on npm build 2022-03-06 02:39:37 +01:00
tailwind.config.js Ran prettier on more file type 2022-03-13 15:56:03 +01:00
tsconfig.json Added testing and display recorders info 2022-02-27 08:17:58 +01:00

README.md

Accords-library.com

Node.js CI GitHub Libraries.io dependency status for GitHub repo

Technologies

Back

  • CMS: Stapi
    • GraphQL endpoint
    • Multilanguage support
    • Markdown format for the rich text fields

Image Processor

  • Convert the images from the CMS to 4 formats
    • Small: 512x512, quality 60, .webp
    • Medium: 1024x1024, quality 75, .webp
    • Large: 2048x2048, quality 80, .webp
    • Og: 512x512, quality 60, .jpg

Front (this repository)

  • Language: TypeScript
  • Queries: GraphQL
    • GraphQL Code Generator to automatically generated types for the operations variables and responses
    • The operations are stored in a graphql file and then retrieved and wrap as an actual TypeScript function
  • Markdown: markdown-to-jsx
    • Support for Arbitrary React Components and Component Props!
  • Styling: Tailwind CSS
    • Good typographic defaults using Tailwind/Typography
    • Beside the theme declaration no CSS outside of Tailwind CSS
    • Manually added support for scrollbar styling
    • Support for Material Icons
    • Support for light and dark mode with a manual switch and system's selected theme by default
    • Support for creating any arbitrary theming mode by swapping CSS variables
  • Framework: Next.js (React)
    • Multilanguage support
  • State Management: React Context
    • Persistent app state using LocalStorage
  • Support for many screen sizes and resolutions
  • SSG (Static Site Generation):
    • The website is built before running in production
    • Performances are great, and possibility to deploy the app using a CDN
  • OpenGraph and Metadata
    • Good defaults for the metadate and OpenGraph properties
    • Each page can provide the thumbnail, title, description to be used
  • Data quality testing
    • Data from the CMS is subject to a battery of tests (about 20 warning types and 40 error types) at build time
    • Each warning/error comes with a front-end link to the incriminating element, as well as a link to the CMS to fix it.
    • Check for completeness, conformity, and integrity

Installation

git clone https://github.com/Accords-Library/accords-library.com.git
cd accords-library.com
npm install

Create a env file:

nano .env.local

Enter the followind information:

URL_GRAPHQL=https://url-to.strapi-accords-library.com/graphql
ACCESS_TOKEN=genatedcode-by-strapi-api
SMTP_HOST=email.provider.com
SMTP_USER=email@example.com
SMTP_PASSWORD=mypassword123
NEXT_PUBLIC_URL_CMS=https://url-to.strapi-accords-library.com/
NEXT_PUBLIC_URL_IMG=https://url-to.img-accords-library.com/
NEXT_PUBLIC_URL_SELF=https://url-to-front-accords-library.com

Run in dev mode:

./run_accords_dev.sh

OR build and run in production mode

./run_accords_build.sh
./run_accords_prod.sh