{"id":25860137,"url":"https://github.com/amliyanage/encrypto-server","last_synced_at":"2026-04-11T03:04:02.909Z","repository":{"id":279986211,"uuid":"939844386","full_name":"amliyanage/Encrypto-server","owner":"amliyanage","description":"Welcome to Encrypto Server! This is the backend server for the Encrypto application, which handles encryption and decryption of sensitive data. It uses modern encryption techniques to ensure that your data is securely processed and stored.","archived":false,"fork":false,"pushed_at":"2025-02-28T15:30:04.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T20:44:15.493Z","etag":null,"topics":["express","mysql","node","nodemon","server","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amliyanage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-27T07:45:21.000Z","updated_at":"2025-02-28T15:30:47.000Z","dependencies_parsed_at":"2025-02-28T20:44:30.578Z","dependency_job_id":"b7a8757a-75ef-4c86-ac3d-dd18be8e770a","html_url":"https://github.com/amliyanage/Encrypto-server","commit_stats":null,"previous_names":["amliyanage/encrypto-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amliyanage%2FEncrypto-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amliyanage%2FEncrypto-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amliyanage%2FEncrypto-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amliyanage%2FEncrypto-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amliyanage","download_url":"https://codeload.github.com/amliyanage/Encrypto-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241430320,"owners_count":19961636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","mysql","node","nodemon","server","typescript"],"created_at":"2025-03-01T21:54:46.534Z","updated_at":"2025-12-30T20:06:40.650Z","avatar_url":"https://github.com/amliyanage.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encrypto Server 🔐\n\nWelcome to **Encrypto Server**! This is the backend server for the **Encrypto** application, which handles encryption and decryption of sensitive data. It uses modern encryption techniques to ensure that your data is securely processed and stored.\n\n## Overview 🛠️\n\n**Encrypto Server** provides a backend API for encrypting and decrypting sensitive information. Built using **Node.js**, **Express**, and **Prisma**, this server allows you to integrate encryption capabilities into your application easily.\n\n### Features\n\n- **Encryption**: Securely encrypt sensitive data using AES and other cryptographic algorithms.\n- **Decryption**: Easily decrypt data when required.\n- **JWT Authentication**: Secure API endpoints with JSON Web Tokens (JWT).\n- **Database Integration**: Store encrypted data securely in a MySQL database using Prisma.\n- **Dev Environment**: Supports live-reload during development with **nodemon**.\n\n## Tech Stack ⚙️\n\n- **Node.js**: JavaScript runtime for building the server.\n- **Express**: Web framework for creating RESTful APIs.\n- **Prisma**: ORM for working with MySQL databases.\n- **bcryptjs \u0026 bcrypt**: For securely hashing passwords.\n- **jsonwebtoken**: For managing authentication with JWT.\n- **dotenv**: For environment variable management.\n- **MySQL2**: MySQL database connector for Node.js.\n\n## Installation 🚀\n\nFollow these steps to set up the Encrypto Server on your local machine:\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/amliyanage/Encrypto-server.git\n   ```\n\n2. **Navigate to the project folder:**\n   ```bash\n   cd Encrypto-server\n   ```\n\n3. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n4. **Set up environment variables:**\n   - Copy `.env.example` to `.env`.\n   - Set up your database connection and other sensitive environment variables in the `.env` file.\n\n5. **Run the server:**\n   For development mode with automatic reloading:\n   ```bash\n   npm run dev\n   ```\n   The server should now be running on `http://localhost:3000`.\n\n## Scripts 📜\n\n- **Development Mode**:  \n  `npm run dev`  \n  Starts the server with live reloading using **nodemon**. Changes to your code will automatically restart the server.\n  \n- **Test**:  \n  `npm test`  \n  A placeholder command for running tests (currently, no tests are defined).\n\n## Dependencies 🛠️\n\nThe project includes the following dependencies:\n\n- **@prisma/client**: Prisma client for working with the database.\n- **bcrypt** \u0026 **bcryptjs**: Libraries for hashing passwords securely.\n- **cors**: Middleware for enabling cross-origin requests.\n- **dotenv**: Loads environment variables from a `.env` file.\n- **express**: Framework for building the REST API.\n- **jsonwebtoken**: For handling JWT authentication.\n- **mysql2**: MySQL client for database connections.\n\n### Development Dependencies\n\n- **@types/***: TypeScript type definitions for various libraries.\n- **nodemon**: Utility for automatically restarting the server during development.\n- **prisma**: Prisma ORM for interacting with MySQL databases.\n- **ts-node** \u0026 **typescript**: TypeScript runtime and compiler.\n\n## Database Configuration 🗃️\n\n1. **Prisma Setup**:  \n   Prisma is used to interact with the MySQL database. To generate the Prisma client, run:\n   ```bash\n   npx prisma generate\n   ```\n\n2. **Migrate Database**:  \n   Run the Prisma migrations to set up your database schema:\n   ```bash\n   npx prisma migrate dev\n   ```\n\n3. **Database Connection**:  \n   Set up your MySQL database connection string in the `.env` file:\n   ```env\n   DATABASE_URL=\"mysql://user:password@localhost:3306/database_name\"\n   ```\n\n## License 📜\n\nThis project is licensed under the **ISC License** - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famliyanage%2Fencrypto-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famliyanage%2Fencrypto-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famliyanage%2Fencrypto-server/lists"}