The issue involved users being unable to register for an account and access the profile page.
- Node.js version 16.14.0 is required for this solution.
To ensure compatibility with this solution, it's recommended to use Node.js version 16.14.0. Node Version Manager (nvm) makes it easy to switch between Node.js versions.
If you don't have nvm installed, you can follow the installation instructions in the official repository.
To switch to Node.js version 16.14.0, run the following commands:
nvm install 16.14.0
nvm use 16.14.0
An update was made to the user
table in the database to include a new column named get_bnb
with the data type BOOLEAN
.
ALTER TABLE user
ADD COLUMN get_bnb BOOLEAN;
The .env
file was modified to replace the variable HOST
with DB_HOST
to ensure proper connection to the backend. Additionally, the email service provider configuration was updated in the backend .env
file:
EMAIL_SERVICE=smtp2go
EMAIL_PORT=2525
EMAIL=your_email@example.com
EMAIL_USER=your_smtp_username
EMAIL_PWD=your_smtp_password
The script for starting the server in the package.json
file was corrected to use &&
instead of &
for proper execution. The corrected script is as follows:
"server": "cd backend && npm start"
In the registration form, the verification code field was modified to only accept numbers. This ensures that only numbers are entered in the verification code field.
Once the user has successfully logged in, the wallet is created using the seed phrase associated with the account. This wallet is used to manage the user's funds and tokens.
After completing the wallet creation process, the user can access the profile page. This page displays the user's balance and the different tokens minted to their wallet.
With these changes and additions, users should be able to register successfully, access their profiles, and manage their funds and tokens effectively.
The language change button state in the UI does not synchronize between the header and footer. Changing the language in one location does not reflect in the other.
This bug is pending further investigation to identify and implement a fix.
Bug 3 is still unresolved and requires additional attention for a complete solution.
Integrate ESLint and Prettier into the project to enforce consistent code style and formatting. Additionally, configure "format on save" functionality to streamline the development process.
Enhance the configuration management process by implementing the following practices:
-
Exclude .env from Version Control:
- Remove the
.env
file from version control to prevent sensitive information (e.g., API keys, passwords) from being exposed. - Provide a
.env.example
file with variable names for developers to reference. Each developer should manually create their own.env
file with the required values.
- Remove the
-
Separate Frontend Configuration:
- Move frontend variables from
env.js
to the.env
file. - Modify
env.js
to load variables from the.env
file.
- Move frontend variables from
These changes aim to improve security and make the configuration process more developer-friendly.
Perform a comprehensive code cleanup to enhance code quality and maintainability. The following steps are recommended:
-
Remove Unused Code:
- Identify and remove any code segments, functions, or variables that are no longer in use.
- Check for commented-out code and remove it if it's not needed.
-
Eliminate Console Logs:
- Search for and remove all
console.log
statements from the codebase. - Consider using a logging library for more structured logging if needed.
- Search for and remove all
-
Unused Imports:
- Identify and remove any import statements that are not used in the code.
- Ensure that all imported modules and components are necessary for the project.
These cleanup tasks aim to streamline the codebase, reduce potential sources of errors, and maintain a cleaner development environment.