{"id":25074832,"url":"https://github.com/idrsdev/transfer-market","last_synced_at":"2025-03-31T19:47:18.567Z","repository":{"id":275485242,"uuid":"914858723","full_name":"idrsdev/transfer-market","owner":"idrsdev","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-02T20:12:45.000Z","size":223,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T21:20:12.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idrsdev.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-10T13:04:05.000Z","updated_at":"2025-02-02T20:12:48.000Z","dependencies_parsed_at":"2025-02-02T21:31:27.961Z","dependency_job_id":null,"html_url":"https://github.com/idrsdev/transfer-market","commit_stats":null,"previous_names":["idrsdev/transfer-market"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrsdev%2Ftransfer-market","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrsdev%2Ftransfer-market/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrsdev%2Ftransfer-market/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idrsdev%2Ftransfer-market/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idrsdev","download_url":"https://codeload.github.com/idrsdev/transfer-market/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246531983,"owners_count":20792735,"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":[],"created_at":"2025-02-07T00:18:46.385Z","updated_at":"2025-03-31T19:47:18.531Z","avatar_url":"https://github.com/idrsdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Football Manager Transfer Market\n\n## Description\n\nThis project is a full-stack application for managing a football transfer market. It consists of a Node.js backend and a React frontend, utilizing TypeScript for type safety. The application is containerized using Docker and served with Nginx.\n\n## Technologies Used\n\n- **Backend**: Node.js, Express, TypeScript, MongoDB\n- **Frontend**: React, Vite, TypeScript\n- **Containerization**: Docker\n- **Web Server**: Nginx\n- **Code Quality**: ESLint, Prettier\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed on your local machine:\n\n- [Docker](https://www.docker.com/get-started)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- [Node.js](https://nodejs.org/) (for local development)\n- [npm](https://www.npmjs.com/) (comes with Node.js)\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/idrsdev/transfer-market.git\ncd transfer-market\n```\n\n### 2. Set Up Environment Variables\n\nCopy the example environment file for the backend:\n\n```bash\ncp backend/.env.example backend/.env\n```\n\nEdit the `.env` file to configure your environment variables, such as database connection strings and secrets.\n\n### 3. Install Dependencies (Optional for Local Development)\n\nIf you want to run the backend or frontend locally without Docker, install the necessary dependencies:\n\n#### Backend\n\n```bash\ncd backend\nnpm install\n```\n\n#### Frontend\n\n```bash\ncd frontend\nnpm install\n```\n\n### 4. Running the Application Locally\n\nTo run the backend and frontend locally, you can use the following commands:\n\n#### Start the Backend\n\n```bash\ncd backend\nnpm run dev # or npm run build \u0026\u0026 npm start\n```\n\n#### Start the Frontend\n\n```bash\ncd frontend\nnpm run dev # or npm run build \u0026\u0026 npm run preview\n```\n\n### 5. Running the Application with Docker\n\nTo run the application using Docker, follow these steps:\n\n#### Build and Start Containers\n\n```bash\ndocker-compose up --build # or docker compose up (depending upon your compose installation)\n```\n\nThis command will:\n\n- Build the Docker images for the frontend and backend.\n- Start the containers and set up the network.\n\n#### Access the Application\n\n- The frontend will be accessible at `http://localhost:80`.\n- The backend API will be accessible at `http://localhost:5000/api`.\n\n### 6. Stopping the Application\n\nTo stop the running containers, use:\n\n```bash\ndocker-compose down\n```\n\n### 7. Cleaning Up\n\nTo remove all stopped containers and unused images, you can run:\n\n```bash\ndocker system prune\n```\n\n## Additional Notes\n\n- Ensure that MongoDB is running if you are not using a Dockerized version.\n- You can run MongoDB locally or use a cloud service like MongoDB Atlas.\n- Make sure you can access your MongoDB instance from the backend service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidrsdev%2Ftransfer-market","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidrsdev%2Ftransfer-market","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidrsdev%2Ftransfer-market/lists"}