- Next.js
- TypeScript
- Datx
- JSON:API
- SWR
- Chakra UI
- React Hook Form
- React Testing Library and Jest for unit and integration tests
- Storybook
- I18Next
- Plop
- Plop Next.js Generators
# Install dependencies
npm ci
# Start the dev server
npm run dev
Use one of the user credentials to log in to the application
# user1
email: 'user1@example.com'
password: 'pasword12345'
# user2
email: 'user2@example.com'
password: 'pasword12345'
# user3
email: 'user3@example.com'
password: 'pasword12345'
Cekila = Cedevita + Tekila
Documentation
Project repository
You need to install secrets_cli
gem. Explained here
gem install secrets_cli
Create a new token on GitHub with read:org
permissions.
Add 3 new environment variables to .zshrc
file:
export VAULT_ADDR=https://vault.byinfinum.co:8200
export VAULT_AUTH_METHOD=github
export VAULT_AUTH_TOKEN={your_github_token}
Don't forget to restart your exec $SHELL
Check the secrets_cli prerequisites section for more details.
Pull the secrets for the specific environment. Explained here
secrets pull -e development
Example link to Vault dashboard:
You should log in with the GitHub method and use VAULT_AUTH_TOKEN for the token.
This project is using the styleguide as defined in the Infinum Handbook.
If you need to start a new project from this template, you have these options:
- Stripped down version of the App from
project-starter-template
branch
npx create-next-app@latest PROJECT_NAME -e https://github.com/infinum/JS-React-Example/tree/project-starter-template --use-npm
- Full-blown example App from the
master
branch
npx create-next-app@latest PROJECT_NAME -e https://github.com/infinum/JS-React-Example --use-npm
Note: replace PROJECT_NAME with the name of your project
Once you have created your new project, you can push it to an existing repository using the following commands:
git remote add origin git@github.com:infinum/REPOSITORY_NAME
git branch -M main
git push -u origin main
Note: Replace REPOSITORY_NAME with the name of your repository. These commands will add the remote repository, rename the branch to main, and push your changes to the remote repository.
JS-React-Example is maintained by Infinum.