This is my personal website, to display my profile and contact information, as well as testing new technologies.
- Install npm locally on your machine
- Install the dependencies
npm install- Run the development server:
npm run dev- Open http://localhost:3000 with your browser to see the result.
Run all tests:
npm run testRun all tests in watch mode:
npm run test:watchInstall Playwright locally on you machine:
npx playwright installRun with UI mode enabled:
npm run test:e2eRun all tests in CI mode:
npm run test:e2e:ciTo see the tests results in your browser:
npm run report:e2eUsing native resources from Next.js the website is available in multiple languages!
Examples:
- To view the website in Portuguese, just visit
https://thebinaryfelix.vercel.app/pt - To view it in English, go to:
https://thebinaryfelix.vercel.app/en
Supported languages:
- ๐บ๐ธ English:
/en - ๐ง๐ท Portuguese:
/pt - ๐ช๐ธ Spanish:
/es
Want to contribute by adding a new language? Follow the steps below:
- Fork the repository
- Go to
src/dictionaries - Copy one of the JSON files and translate the values (by yourself or using ChatGPT)
- Create a new file inside
src/dictionariesusing the base UTS Locale Identifiers. i.e.: For Portuguese would just bept.json, no need forpt-BRorpt-PT - Go to
src/i18n-config.tsand add the new language to thei18n.localesarray - Import the new file in
src/getDictionary.ts - Update the
languagesarray inside the LanguageSelector.tsx component to allow the new language to be selected by the user - Open a pull request with the new file
- Unit testing: Jest + Testing Library
- E2E testing: Playwright
- Google Analytics with @next/third-parties