mirror of
https://github.com/AnimeThemes/animethemes-web.git
synced 2026-07-11 01:24:31 +02:00
d7329f73b75e9d284ee42218d04f192726dccee1
* Replaced various icons with better fitting ones. * Improved tag styling in general. * Fixed pages throwing 500 errors instead of 404. * Fixed manual revalidation.
AnimeThemes Web Client
Configuration
To get started you need to define some environment variables. This can be done by creating a .env.local file in the
root directory.
This is a list of all available options:
; Back-end API configuration
; These values are required.
ANIMETHEMES_API_URL=http://localhost
ANIMETHEMES_API_KEY=...
; (Optional) The URL to the AnimeThemes API to use on the front-end.
; For development this is "http://localhost" by default.
; For production this is "https://staging.animethemes.moe" by default.
NEXT_PUBLIC_API_URL=http://localhost
; (Optional) The URL from which video files should be served.
; By default this is "https://animethemes.moe".
NEXT_PUBLIC_VIDEO_URL=https://animethemes.moe
; (Optional) The base path the app should be hosted on.
; By default the app is hosted on the root path (/).
NEXT_PUBLIC_BASE_PATH=/wiki
For more information on environment variables see the Next.js documentation.
Development
npm installnpm run dev
Deployment
npm install(If not done already.)npm run buildgenerates all static pages and produces a production ready bundle.npm run startstarts the server.- The server is now listening on port 3000 for incoming requests.
Used technologies
- Next.js
- styled-components
- react-query
- Font Awesome
- ...some other small packages, see the
package.json.
APIs
Description
Languages
TypeScript
99.5%
SCSS
0.5%