Git Product home page Git Product logo

aremzywallet's Introduction

Project README

About

This project is a Crypto wallet for sending and recieving USDC and SOL payments using Circle Api developer controlled wallet

How to Run the Project

This project consists of two main parts: a React frontend application and a Node.js backend application. Each part is contained within its respective folder.

Prerequisites

Ensure you have the following installed on your system:

  • Node.js (v18 or later)
  • npm (v8 or later)
  • yarn (optional, but recommended for managing dependencies)

Setting Up the Node.js Backend

  1. Navigate to the Node.js folder:

    cd CircleWalletApi
  2. Install the dependencies:

    npm install
  3. Create an .env file:

    In the root of the Node.js folder, create an .env file and add the necessary environment variables. Here is an example of what your .env file might look like:

    GOOGLE_CLIENT_ID

GOOGLE_CLIENT_SECRET MONGODB_URI SESSION_SECRET='y3830974u39o09u3j9i2k0' CLIENT_URL=http://localhost:5000 CLIENT_URL_UI=http://localhost:5173 CIRCLE_KEY= ENTITY_SECRET= ```

  1. Getting the secrets

As for GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET, you will have to create a new app in the Google Cloud Console and create credentials for Google Auth 2.0, and also you will have to set googles callback url to http://localhost:5000/auth/google/callback

As for CIRCLE_KEY, you will have to create an api key at circle.com and as for ENTITY_SECRET, you will have to generate it natively or at circle.com's documentation website and use it to generate an Entity Secret Ciphertext which will be registered at circle.com's configurator. see their docs for more info

and as for MONGODB_URI, you will have to register a mongodb atlas account and get a database connection uri

The other secrets are already predefined above

  1. Run the backend server:

    node app

    This will start the Node.js server on the port 5000.

Setting Up the React Frontend

  1. Navigate to the React folder:

    cd walletUI
  2. Install the dependencies:

    npm install

    If you prefer using yarn:

    yarn install
  3. Run the frontend application:

    npm run dev

    Or, if you used yarn:

    yarn start

    This will start the React development server, typically on http://localhost:5173.

Running the Project

  1. Ensure both the Node.js backend and the React frontend are running.

  2. Open your browser and navigate to http://localhost:5173 to access the React application.

The React application should now be able to communicate with the Node.js backend. If any issues arise, check the console output for both the frontend and backend for error messages and resolve them accordingly.

Additional Notes

  • Make sure your environment variables are correctly set in the .env file for the Node.js application.
  • If you encounter any issues with dependencies, try deleting the node_modules folder and the package-lock.json file (or yarn.lock if using yarn) in both folders, then reinstalling the dependencies.
  • For production deployment, consider using tools like Docker, PM2, or hosting services like Heroku, AWS, or Vercel.

Happy coding!

aremzywallet's People

Contributors

aremumahmud avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.