This project is an excercise of the Ethereum Bootcamp for the Alchemy university website.
Further explanation about this project can be found here: https://github.com/alchemyplatform/ecdsa-node
The client folder contains a react app using vite. To get started, follow these steps:
- Open up a terminal in the
/clientfolder - Run
npm installto install all the depedencies - Run
npm run devto start the application - Now you should be able to visit the app at http://127.0.0.1:5173/
The server folder contains a node.js server using express. To run the server, follow these steps:
- Open a terminal within the
/serverfolder - Run
npm installto install all the depedencies - Run
node indexto start the server
The application should connect to the default server port (3042) automatically!
In order to get a fresh key-pair (private and public) you can execute the generate script in the server application.
- Open a terminal within the
/serverfolder - Run
npm installto install all the depedencies (In case you haven't done it yet.) - Run
npm run generateto generate and print in console a key-pair and the corresponding ethereum address.
This project requests the user to input their private key for the sake of simplicity. Normally, we would use a wallet to sign a transaction before pushing it to the backend.
Hint - Use nodemon instead of node to automatically restart the server on any changes.