This repository provides a wallet_sdk built with React and utilizes various dependencies like Djuno, Redux Toolkit, and TailwindCSS. It is intended for developers integrating a wallet SDK into their applications.
Before you begin, ensure you have the following:
-
Node.js (v16 or higher)
-
A Djuno Access Key (for interacting with Djuno API)
-
Set your Djuno Access Key in an environment variable:
REACT_APP_DJUNO_WALLET_ACCESS_KEY=your-djuno-access-key
-
-
Clone the repository to your local machine:
git clone https://github.com/Djuno-Ltd/djuno-wallet-starterkit.git cd djuno-wallet-starterkit -
Install dependencies:
npm install
-
Set up the
.env.localfile and add your Djuno Access Key:REACT_APP_DJUNO_WALLET_ACCESS_KEY=your-djuno-access-key
- Get or create a new wallet access key from your Djuno Cloud panel
-
Run the application:
npm start
Your application should now be live at http://localhost:3000.
If you'd like to run the app as a production-ready static site served by Nginx:
-
Ensure your
.env.localis set up as shown above. -
Build and run the container:
docker compose up --buildThis project uses the following dependencies:
@djuno/wallet-hook- Hook for interacting with the Djuno wallet.@djuno/wallet-sdk- Djuno Wallet SDK for building wallet integrations.
For the full list of dependencies, please refer to the package.json file.
The project includes the following npm scripts:
-
start: Start the development server.npm start
-
build: Build the project for production.npm run build
-
eject: Eject from Create React App's configuration (useful if you want to customize the build setup).npm run eject
-
prettier: Format your code using Prettier.npm run prettier
You can configure your project via the eslintConfig and browserslist fields in package.json:
- ESLint Configuration:
- Uses
react-appandreact-app/jestfor linting.
- Uses
- Browserslist:
- Ensures compatibility with the latest browsers in production and development environments.
This project is licensed under the MIT License.