Source code of bodypace.org website.
Webapp that encrypts and decrypts everything locally (in browser). Unencrypted data never leaves your device.
This is a Next.js project bootstrapped with create-next-app
.
this project was created with:
"next": "14.0.1",
"msw-storybook-addon": "^2.0.0-beta.1",
but it was downgraded to
"next": "13.2.4",
"msw-storybook-addon": "2.0.0-beta.2", (yea, here it is higher)
NextJS was downgraded because at 2024-04-01 NextJS 14 did not work on raspberry pi linux/arm/v7 architecture (from what I tried). Next 14 has a dependency on SWC which does not provide prebuild binary for armv7l and I failed to run npm in such a way that it will build that for me, thus I downgraded (simpler than wasting 4 days to learn how cross-compilation works on npm or wait each time few hours for a build to finish on emulated armv7l on my host amd64/x86_64 architecture).
in tsconfig.js
such changes were made:
from:
"module": "esnext",
"moduleResolution": "bundler",
to:
"module": "nodenext",
"moduleResolution": "nodenext",
"forceConsistentCasingInFileNames": true (new key-value pair)
everything else is in this commmit, check git history.
Those 2 lines added to vscode setting:
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
were added by npm run lint
after downgrading to NextJS 13. Idk exactly why, get rid of it after upgrading back to latest NextJS version.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.