AUTONOMY is a full-stack DApp (Decentralized Application) framework designed to facilitate scalable and modular application development. It integrates a modern JavaScript/React frontend, Rust on-chain backend, Node.js off-chain backend, MongoDB database, and includes AWS integration for seamless deployment.
- 📦 Modular project architecture for scalability and clarity
- ⚛️ React-based frontend
- 🧠 Express.js backend with REST API support
- ☁️ AWS integration via environment variables
- 🗄️ MongoDB setup for data persistence
- 🧪 Ready for testing and smart contract support
AUTONOMY/
│
├── backend/ \# Node.js backend source
│ ├── .env \# AWS credentials and config (edit manually)
│ ├── package.json \# Backend dependencies
│ └── ... \# Controllers, routes, services, etc.
│
├── frontend/ \# React frontend source
│ ├── public/ \# Static assets
│ ├── src/ \# Components, pages, hooks, etc.
│ ├── package.json \# Frontend dependencies
│ └── ...
│
├── migrations/ \# Scripts for DB or smart contract migration
│ └── ...
│
├── programs/ \# Smart contracts (e.g., Solana/Anchor)
│ ├── src/
│ ├── Cargo.toml
│ └── ...
│
├── tests/ \# Unit & integration tests
│ └── ...
│
├── Anchor.toml \# Anchor config for smart contracts
├── README.md \# You’re reading it!
└── ...
Follow the steps below to get the application up and running on your local machine.
Extract the contents to your local machine.
cd frontend/
npm install \# Install frontend dependencies
npm start \# Start frontend on http://localhost:3000
Open a separate terminal and run:
sudo systemctl start mongod
- Open
backend/.env
- Add your AWS credentials and other environment variables
Format:
AWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_access_key
AWS_REGION=your_region
cd backend/
npm install \# Install backend dependencies
npm start \# Starts backend server (usually on http://localhost:5000)
Visit the frontend in your browser:
Make sure to set the following in backend/.env
:
PORT=5000
MONGODB_URI=your_mongo_db_connection_string
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_REGION=your_region