2021-07-15 12:44:07 +00:00
# Jokes Bapak2 Client
2021-05-02 07:49:13 +00:00
2022-09-10 13:05:26 +00:00
The frontend.
2021-05-02 07:58:37 +00:00
2021-07-09 12:22:56 +00:00
## Development
2021-05-02 07:58:37 +00:00
2021-07-09 03:50:38 +00:00
```bash
2021-07-09 12:22:56 +00:00
# Install modules
2022-09-10 13:05:26 +00:00
$ npm install
2021-07-09 03:50:38 +00:00
2021-07-09 12:22:56 +00:00
# Run local server
2022-09-10 13:05:26 +00:00
$ npm run dev
2021-07-09 03:50:38 +00:00
2021-07-09 12:22:56 +00:00
# build everything
2022-09-10 13:05:26 +00:00
$ npm run build
2021-07-09 03:50:38 +00:00
```
2022-09-10 13:05:26 +00:00
> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
2021-07-09 12:22:56 +00:00
## Used packages
2022-09-10 13:05:26 +00:00
| Name | Version | Type |
| -------------------------- | ---------------- | -------------------- |
| @sveltejs/kit | `1.0.0-next.480` | Framework |
| svelte | `3.50.1` | Framework |
| typescript | `4.8.3` | Static type language |
| svelte-i18n | `3.4.0` | i18n Library |
| svelte-windicss-preprocess | `4.2.8` | CSS Library |
| @fontsource/fira -mono | `4.5.9` | Webfont |
| @fontsource/rubik | `4.5.11` | Webfont |
| dotenv | `16.0.2` | Utils |
| @sentry/browser | `7.12.1` | Logging |
2021-07-15 12:44:07 +00:00
## Directory structure
```
.
├── Dockerfile - Docker image for client
├── package.json - Meta information & dependencies
├── README.md - You are here
├── src
│ ├── app.html - HTML entry point
│ ├── components - Svelte component files
│ ├── global.d.ts - Global type definition for Typescript
│ ├── languages - i18n localization database
│ ├── lib - Logic & utilities
│ └── routes - Svelte page files
├── static - Static/public directory
├── svelte.config.js - Svelte configuration file
├── tsconfig.json - Typescript configuration file
2022-09-10 13:05:26 +00:00
├── windi.config.ts - WindiCSS configuration file
└── package-lock.json - Packages lock file
2021-07-15 12:44:07 +00:00
```
## `.env` configuration
```ini
VITE_NODE_ENV=development
VITE_API_ENDPOINT=
VITE_SENTRY_DSN=
```