{"id":10608368,"url":"https://github.com/haseeb-heaven/fast-server","last_synced_at":"2025-04-11T20:32:49.700Z","repository":{"id":37760141,"uuid":"506212995","full_name":"haseeb-heaven/fast-server","owner":"haseeb-heaven","description":"FastServer is simple API based server created in FastApi with Clients in various languages.","archived":false,"fork":false,"pushed_at":"2023-06-02T16:02:15.000Z","size":1440,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T08:59:50.763Z","etag":null,"topics":["api-rest","client","cpp","fastapi","fastapi-users","golang","javascript","json","open-api","postman","python","python-server","server","swagger-ui"],"latest_commit_sha":null,"homepage":"https://fast-server.vercel.app","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haseeb-heaven.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":"2022-06-22T11:12:37.000Z","updated_at":"2025-02-07T04:46:53.000Z","dependencies_parsed_at":"2024-06-02T09:26:44.417Z","dependency_job_id":null,"html_url":"https://github.com/haseeb-heaven/fast-server","commit_stats":null,"previous_names":["haseeb-heaven/fast-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseeb-heaven%2Ffast-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseeb-heaven%2Ffast-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseeb-heaven%2Ffast-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseeb-heaven%2Ffast-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haseeb-heaven","download_url":"https://codeload.github.com/haseeb-heaven/fast-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248476626,"owners_count":21110327,"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":["api-rest","client","cpp","fastapi","fastapi-users","golang","javascript","json","open-api","postman","python","python-server","server","swagger-ui"],"created_at":"2024-06-02T09:04:12.239Z","updated_at":"2025-04-11T20:32:48.595Z","avatar_url":"https://github.com/haseeb-heaven.png","language":"C++","funding_links":["https://www.buymeacoffee.com/haseebheaven","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":["C++"],"sub_categories":[],"readme":"# FastServer\n![logo](https://i.imgur.com/zZJa3Wc.png)\u003c/br\u003e\nFastServer is server created in [FastApi](https://fastapi.tiangolo.com/) with Gateway Interface in [Uvicorn](https://www.uvicorn.org/) and Clients in various languages available.\nthis shows how to create a basic server with **Users** information and how to handle users data and operations listed below.\n- **Support this Project** \u003ca href=\"https://www.buymeacoffee.com/haseebheaven\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee\u0026emoji=\u0026slug=haseebheaven\u0026button_colour=40DCA5\u0026font_colour=ffffff\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=FFDD00\" /\u003e\u003c/a\u003e\n## Server Operations.\n- **Adding** - Adding user to server using `/add-user/` endpoint.\n- **Updating** - Updating user information in server using `/update-user/` endpoint.\n- **Removing** - Removing user in server using `/remove-user/` endpoint.\n- **Retrieving** - Retrieving user information in server using `/user/?id=` endpoint.\n- **Server-Info** - Retrieving server information using `/server-info/` endpoint.\n- **Server DB Reset** - Resetting whole server using  `/null/` endpoint. _[BETA]_ **Risky**.\n\n## Server Features.\n- Simple and fast server using Python.\n- Server with _228_ requests per second.\n- Persistent Database using `Json`.\n- Auto reloading source changes.\n\n## Server Docs.\nServer documentation is automatically generated using `FastApi`.\n**Docs using OpenApi**\u003c/br\u003e\n![ServerDocs](https://i.imgur.com/ZYHhEV4.png)\n\n**ReDocs using OpenApi**\u003c/br\u003e\n![ServerReDocs](https://i.imgur.com/fVJdWKW.png)\n\n# Server\nServer is created in Python and to start server first install modules from `requirements.txt`.\u003c/br\u003e\n- [FastApi](https://fastapi.tiangolo.com/) : use `pip install fastapi`\u003c/br\u003e\n- [Uvicorn](https://www.uvicorn.org/) : use `pip install vvicorn`\u003c/br\u003e\nThen run the server using following methods.\n- Using Uvicorn : use `python -m uvicorn FastServer:app --reload`\n- Using Python : user `python -u FastServer.py`\nServer started running ![ServerStart](https://i.imgur.com/g4EJu0a.png)\n\n# Client\nClients are created in various languages like **C++,Go,JavaScript...** to handle basic operations on users like _Adding/Updating/Removing User_ operations.\nhere are list of following clients available and for sake of simplicity every client is named to `FastClient`.\n\n## Cpp - C++ Client for FastServer.\n- **Client** - `Cpp\\FastClient.cpp` Contains client for FastServer.\n- **Requirements** - `Cpp\\lib` folder contains `HTTPRequest.hpp` for sending/posting _Http_ Requests to server and `json.hpp` for parsing Json using [JsonCpp](https://github.com/nlohmann/json)\n\n## Chsarp - C# Client for FastServer.\n- **Client** - `csharp\\FastClient.cs` Contains client for FastServer.\n- **Requirements** - install modules from `requirements.txt` listed as [_Newtonsoft.Json_](https://www.newtonsoft.com/json),[_RestSharp_](https://restsharp.dev/) or use the command line.\ncommand: `dotnet add package Newtonsoft.Json`\n\n## GoLang - GO Client for FastServer.\n- **Client** - `golang\\FastClient.go` Contains client for FastServer.\n- **Requirements** - *None* just run the _FastClient.go_ file.\n- **Features**  -  Fastest client sending 200 Request/s and Adding _500 Users_ in _3.12_ seconds\n\n## Nodejs - JavaScript Client for FastServer.\n- **Client** - `nodejs\\FastClient.js` Contains client for FastServer.\n- **Requirements** - install modules from `requirements.txt` listed as _request_,_Faker_ or use the command line.\ncommand: `npm install request`\n- **Features**  -  Fastest client sending 200 Request/s and Adding _500 Users_ in _3.62_ seconds\n\n## Python - Python Client for FastServer.\n- **Client** - `python\\FastClient.py` Contains client for FastServer.\n- **Requirements** - install modules from `requirements.txt` listed as _FastApi_,_Uvicorn_,_requests_ or use the command line.\ncommand: `pip install fastapi`\n\n## Swift - Swift Client for FastServer.\n- **Client** - swift/FastClient.swift Contains client for FastServer.\n- **Requirements** - - None. The client uses built-in Swift libraries.\n\n## Rust - Rust Client for FastServer.\n- **Client** - rust/FastClient.rs Contains client for FastServer.\n- **Requirements** - - Install reqwest and serde crates using the following command:\n`cargo install reqwest serde`\n\n## Java - Java Client for FastServer.\n- **Client** - java/FastClient.java Contains client for FastServer.\n- **Requirements** - - None. The client uses built-in Java libraries.\n\nwritten and maintained by Haseeb Mir (haseebmir.hm@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaseeb-heaven%2Ffast-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaseeb-heaven%2Ffast-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaseeb-heaven%2Ffast-server/lists"}