- Install Rust
- Instal Solana Tool Suite
- Install Anchor
cd phr_core
anchor build
- It will build the program for youanchor deploy
- it will deploy program(ensure 4.5 sol balance in your account)
- Install Postgres in localhost
- create a Database phr:
CREATE DATABASE phr
- run SQL COMMAND to create table:
CREATE TABLE users(id text, name text, profile_type text, public_key text unique, secret_key integer[], phone numeric(10, 0), primary key(id));
- Create a user postgres with password postgres
- Grant access to users table;
GRANT SELECT, INSERT, UPDATE ON users to postgres
solana-keygen new
- Creates new keypair if not present at default locationcd api
: from parent foldernpm install
cd api
: From Parent Foldernpm run start
: starts the server
cd client
: From parent Foldernpm install
cd client
: From Parent Foldernpm start
: Starts the Application