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 test
Run all tests in watch mode:
npm run test:watch
Install Playwright locally on you machine:
npx playwright install
Run with UI mode
enabled:
npm run test:e2e
Run all tests in CI mode
:
npm run test:e2e:ci
To see the tests results in your browser:
npm run report:e2e
Using 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/dictionaries
using the base UTS Locale Identifiers. i.e.: For Portuguese would just bept.json
, no need forpt-BR
orpt-PT
- Go to
src/i18n-config.ts
and add the new language to thei18n.locales
array - Import the new file in
src/getDictionary.ts
- Update the
languages
array 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