An encrypted cloud platform for securely storing, syncing, and managing environment variables across all your projects and teams.
- 🔒 Secure Storage - Enterprise-grade encryption for your sensitive data
- 🔑 Easy Access - Simple and intuitive interface for managing environment variables
- 🛡️ Encrypted - End-to-end encryption ensures your data stays private
- ⚡ Fast Sync - Quick synchronization across all your projects and environments
- Frontend: Next.js 15 with React 19
- Styling: Tailwind CSS with Radix UI components
- Database: PostgreSQL with Drizzle ORM
- Authentication: Better Auth
- Runtime: Bun
- TypeScript: Full type safety throughout
- Clone the repository:
git clone https://github.com/r2hu1/ration.git
cd ration
- Install dependencies:
bun install
- Set up your environment variables:
cp .env.example .env.local
- Configure your database connection in
.env.local
:
DATABASE_URL="postgresql://username:password@localhost:5432/ration"
- Push the database schema:
bun run db:push
- Start the development server:
bun run dev
The application will be available at http://localhost:3000
.
bun run dev
- Start development server with Turbopackbun run build
- Build for productionbun run start
- Start production serverbun run lint
- Run Biome lintingbun run format
- Format code with Biomebun run db:push
- Push database schema changesbun run db:studio
- Open Drizzle Studiobun run schema:generate
- Generate database migrations
ration/
├── app/
│ ├── (main)/
│ │ ├── auth/ # Authentication pages
│ │ └── dashboard/ # Dashboard pages
│ ├── (root)/ # Landing page
│ └── api/ # API routes
├── components/ # Reusable UI components
├── db/ # Database schema and configuration
├── drizzle/ # Database migrations
├── lib/ # Utility functions and configurations
├── modules/ # Feature modules
└── public/ # Static assets
Create a .env.local
file with the following variables:
DATABASE_URL="your-postgresql-connection-string"
BETTER_AUTH_SECRET=
BETTER_AUTH_URL=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GMAIL_USER=
GMAIL_PASS=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
This project uses PostgreSQL with Drizzle ORM. Make sure you have PostgreSQL running and create a database for the application.
- Build the application:
bun run build
-
Set up your production environment variables
-
Push the database schema to production:
bun run db:push
- Start the production server:
bun run start
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Managing environment variables across multiple projects, environments, and team members can be challenging. Ration solves this by providing a secure, centralized platform where you can:
- Store sensitive configuration data with enterprise-grade encryption
- Easily share environment variables with team members
- Sync configurations across development, staging, and production environments
- Maintain version history and audit trails
- Access your variables from anywhere with a simple, intuitive interface
Built with modern web technologies and security best practices, Ration ensures your sensitive data remains protected while being easily accessible to authorized users.