@mrv3n0m/secure-env
v1.0.3
Published
Track Ethereum addresses with authentication and database support
Downloads
32
Readme
🧠 ChainTrackr
ChainTrackr is a lightweight, extensible backend service that allows users to register, log in, and manage their crypto wallet addresses securely. It provides a clean and modern RESTful API for user authentication and address management, built with TypeScript, Express, and TypeORM.
Features
- 🔐 User authentication (register & login)
- 🏦 Address CRUD (create, read, update, delete) tied to authenticated users
- 📄 Input validation with Zod
- 📚 Interactive API documentation using Swagger UI
- 🔄 Clean and modular codebase using service-controller architecture
- 🌍 Ready to scale with support for future integrations
Technologies Used
- TypeScript
- Express.js
- TypeORM
- PostgreSQL
- Zod (for validation)
- Bcrypt (for password hashing)
- JWT (for authentication)
- Swagger (for API docs)
📂 Struktur Folder
Directory Structure
chaintrackr/src/controllers/- Request handlers (address, auth, etc.)entities/- TypeORM entity definitions (User, Address)routes/- API route definitionsservices/- Business logic servicesmiddlewares/- Express middlewares (e.g., auth)validators/- Zod validation schemasdocs/- Swagger configurationdata-source.ts- Database configuration (TypeORM)index.ts- Entry point of the app
.env- Environment variablesdocker-compose.yml- Docker setup (Postgres + App)tea.yaml- Metadata for Tea.xyz open-source registryREADME.mdtsconfig.json- TypeScript config
⚙️ Getting Started
1. Clone the Repository
git clone https://github.com/yourusername/chaintrackr.git
cd chaintrackr/backend2. Install Dependencies
npm install3. Set Up Environment Variables
Create a .env file in the backend/ directory:
PORT=3001
DATABASE_URL=postgres://user:password@localhost:5432/chaintrackr
JWT_SECRET=your_jwt_secret4. Run the Development Server
npm run devThe server should be running on http://localhost:3001.
5. API Documentation
Access Swagger UI at:
http://localhost:3001/api-docs🛠️ Development Plan
🔐 Email verification
🧩 Tracking token balances
📈 Balance change notifications (future)
Contributing to Tea.xyz Ecosystem
ChainTrackr is built to be flexible and ready for integration into the Tea.xyz ecosystem. If you're interested in contributing to a decentralized package registry and supporting the next generation of web3 infrastructure, feel free to:
- Fork this repository
- Improve or extend functionality
- Submit a pull request
- Add your name to the list of contributors in
tea.yaml(coming soon)
Together, we can make the blockchain world more accessible and developer-friendly.
License
MIT License
