- Tracking the progress of my learning journey with topics such as Vim and Pandas 10-minute guide.
- forked from https://github.com/dMario24/flag123/releases/tag/251.21.3
-
make dummy data
```sql SELECT version(); PostgreSQL 15.10 on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit -- https://hub.docker.com/layers/library/postgres/15.10/images/sha256-6bd528fd9ed2ca50c0dd7c85c1bc20d0150c63418a04d8d3973cab95f63f9567 -- CREATE TABLE => postgres_init/1-create-table.sql \d+ flags INSERT INTO flags (name, latitude, longitude, img_url) VALUES ('#BRAT impeachment and itโs completely different but also still impeachment', 37.525307 + (37.530139 - 37.525307) * RANDOM(), 126.919467 + (126.922896 - 126.919467) * RANDOM(), '/dummy/d1.webp') INSERT INTO flags (name, latitude, longitude, img_url) VALUES ('#BRAT impeachment and itโs completely different but also still impeachment', 37.525307 + (37.530139 - 37.525307) * RANDOM(), 126.919467 + (126.922896 - 126.919467) * RANDOM(), '/dummy/d1.webp'), ('Korean branch of the Jedi Federation', 37.525307 + (37.530139 - 37.525307) * RANDOM(), 126.919467 + (126.922896 - 126.919467) * RANDOM(), '/dummy/d2.webp'), ('Rapping Rabbit Federation', 37.525307 + (37.530139 - 37.525307) * RANDOM(), 126.919467 + (126.922896 - 126.919467) * RANDOM(), '/dummy/d3.webp'), ('National Carrot Alliance Loving Rabbits', 37.525307 + (37.530139 - 37.525307) * RANDOM(), 126.919467 + (126.922896 - 126.919467) * RANDOM(), '/dummy/d4.webp'), ('Flags World Championship', 37.525307 + (37.530139 - 37.525307) * RANDOM(), 126.919467 + (126.922896 - 126.919467) * RANDOM(), '/dummy/FWC.png'); SELECT id,name,img_url FROM flags ORDER BY id DESC; SELECT id, flag_id, delta_cnt, created_at AT TIME ZONE 'Asia/Seoul' AS created_at_kst FROM flag_like_history ORDER BY id DESC; SHOW TIME ZONE; -- GMT SELECT CURRENT_TIMESTAMP; -- ์ชผ์ธ SELECT f.id, f.name, f.img_url, COALESCE(SUM(fl.delta_cnt), 0) AS like_count FROM flags f LEFT JOIN flag_like_history fl ON f.id = fl.flag_id GROUP BY f.id, f.name, f.img_url ORDER BY f.id DESC ``` -
Alternatively, you can use the local DBMS using the Dockerizing part below. The setting file DATABASE_CLIENT needs to be changed.
- Rename env.dummy to .env.local. Make sure the file is not pushed to the public GitHub repository.
- To avoid using analytics and statistics by connecting to Google Firebase, delete analytics.ts.
- Refer to the Vercel CLI to sync variables for database connection.
- I used https://api.imgbb.com/ for image uploads. In your case, you should obtain a new API key
- ested on WSL Ubuntu 22.04.4 LTS and macOS. ( node : v20.17.0 || v22.12.0, nextjs : 14.2.19)
$ npm install
$ npm run dev
$ pyenv global
3.10.12
# $ python -m venv venv
$ source venv/bin/activate
# $pip install -r requirements.txt
$ uvicorn api.index:app --reload$ npx jest -t "should correctly join URL parts into a complete URL"
PASS __tests__/utils.test.ts (5.773 s)
-----------------|---------|----------|---------|---------|----------------------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------------|---------|----------|---------|---------|----------------------------------------------------
All files | 22.42 | 100 | 9.09 | 22.42 |
app/lib | 54.54 | 100 | 0 | 54.54 |
getClientId.ts | 54.54 | 100 | 0 | 54.54 | 7-11
lib | 18.75 | 100 | 10 | 18.75 |
utils.ts | 18.75 | 100 | 10 | 18.75 | 5-7,9-16,18-23,25-27,29-40,44-72,74-82,84-87,89-92
-----------------|---------|----------|---------|---------|----------------------------------------------------
Test Suites: 1 skipped, 1 passed, 1 of 2 total
Tests: 3 skipped, 1 passed, 4 total
Snapshots: 0 total
Time: 6.379 s, estimated 10 s
Ran all test suites with tests matching "should correctly join URL parts into a complete URL"
$ npm test- Contributions are open, though I donโt expect anyone to take an interest. Iโll gratefully accept any small advice or help. Thank you. Best regards. ๐๐
- https://vercel.com/docs/deployments/overview
- https://vercel.com/docs/storage/vercel-postgres#vercel-postgres
- https://vercel.com/docs/cli/env
- The .env.local file DATABASE_CLIENT needs to be changed.
# docker compose down --volumes --remove-orphans # sudo rm -rf postgres_data $ docker compose up -d db adminer $ docker compose build web $ docker compose up -d web
- https://medium.com/@alexandre.penombre/file-upload-with-next-js-14-app-router-6cb0e594e778
- https://nextjs.org/docs/14/app/api-reference/functions/unstable_cache
- https://nextjs.org/docs/app/api-reference/config/next-config-js/headers
- https://medium.com/@aleksej.gudkov/how-to-disable-cache-in-next-js-a-comprehensive-guide-a1603559483e
- https://nextjs.org/docs/pages/building-your-application/configuring/debugging
- https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadata-fields
- ๋ก์ปฌ ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ์๋ Next.js ํํ ๋ฆฌ์ผ: ๋น ๋ฅธ ์์ ๊ฐ์ด๋
- nextjs edit page
- nextjs authentication
- authentication with nextjs 14
- ์ธ์ ์ ๋ณด ๋ฐ๊ธฐ - ๋ก๊ทธ์ธ ์ฒดํฌ
- ํ๊ธ ์์ ๋ชจ์ ๋ถ๋ฆฌ ์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ Hangul.js
- ํ๊ธ ๋ง์ถค๋ฒ ๊ฒ์ฌ๊ธฐ
- ETRI Open AI API/Data Service, Supported by MSIT
- Application error: a client-side exception has occurred (see the browser console for more information).
- Error: Cannot find module '/home/ppabam/code/flag123/node_modules/.pnpm/bcrypt@5.1.1/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node'
$ npm rebuild bcrypt
- Clear Cache and Rebuild
$ rm -rf node_modules package-lock.json .next $ npm install $ npm run build