{"id":19136798,"url":"https://github.com/wasswarichard/react-typescript-nestjs-mongodb-docker","last_synced_at":"2026-04-12T15:01:21.787Z","repository":{"id":115220065,"uuid":"606695010","full_name":"wasswarichard/React-Typescript-nestjs-MongoDb-Docker","owner":"wasswarichard","description":"real time transactions using react, typescript, nestjs, mongodb, cronjobs, event-emitter, websockets, typescript.","archived":false,"fork":false,"pushed_at":"2023-03-12T14:40:01.000Z","size":1228,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-03T13:16:42.680Z","etag":null,"topics":["cronjob","docker","event-emitters","mongodb","mongoose","nestjs","node","nodejs","react","socket-io","typescript","websocket","websockets"],"latest_commit_sha":null,"homepage":"","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/wasswarichard.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":"2023-02-26T09:28:13.000Z","updated_at":"2023-03-17T12:22:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d89aaa7-d3fe-422b-bfc6-0c9f2933de7e","html_url":"https://github.com/wasswarichard/React-Typescript-nestjs-MongoDb-Docker","commit_stats":null,"previous_names":["wasswarichard/react-typescript-nestjs-mongodb-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasswarichard%2FReact-Typescript-nestjs-MongoDb-Docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasswarichard%2FReact-Typescript-nestjs-MongoDb-Docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasswarichard%2FReact-Typescript-nestjs-MongoDb-Docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasswarichard%2FReact-Typescript-nestjs-MongoDb-Docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wasswarichard","download_url":"https://codeload.github.com/wasswarichard/React-Typescript-nestjs-MongoDb-Docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240215427,"owners_count":19766411,"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":["cronjob","docker","event-emitters","mongodb","mongoose","nestjs","node","nodejs","react","socket-io","typescript","websocket","websockets"],"created_at":"2024-11-09T06:35:34.718Z","updated_at":"2025-11-13T15:03:17.294Z","avatar_url":"https://github.com/wasswarichard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Currency Exchange\n\n## Libraries/Frameworks used\n\n- **Frontend**: React, TypeScript, Material UI, Socket.io, Jest, React Testing Library.\n- **Backend** : Nestjs, TypeScript, Event-emitter, Mongoose, websockets.\n- **Database**: MongoDB\n\n## Running The Application\n\n### 1. To run locally\n\n1. Download and Install MongoDB on your local machine.\n2. Inside the `backend` directory, run `npm install` to install the backend dependencies.\n3. Obtain a BACKEND_URL_ACCESS_KEY by creating an account on https://coinlayer.com/ a real-time crypto currency exchange api.\n4. Create a `.env` file under `backend` directory and set the following environment variables:\n```\nBACKEND_URL=http://api.coinlayer.com/api\nBACKEND_URL_ACCESS_KEY=522df20f7bc454382c04e7f9f042b7ae\nDATABASE_URL=mongodb://127.0.0.1:27017/cryptocurrency\n```\nStart the nestjs server using `npm start`. The server will start on http://localhost:3001\n\n\nNow that the nestjs server is running, bootstrap the frontend:\n\n5. Inside the `frontend` directory, run `npm install` to install the frontend dependencies.\n6. Create a `.env` file under `frontend` directory and set the following environment variables:\n\n```\nREACT_APP_BACKEND_URL=http://localhost:3001\n```\n\n7. Start the frontend dev server using `npm start`. The server will start on http://localhost:3000\n\n### 2. To run application using Docker\n1. Obtain a BACKEND_URL_ACCESS_KEY by creating an account on https://coinlayer.com/ a real-time crypto currency exchange api.\n2. Update the docker-compose.yml file in the root of the project and replace BACKEND_URL_ACCESS_KEY with the obtained key.\n3. In the root of the project run `docker-compose up --build`. The backend will start running on port 3001 and frontend on port 3000. The application can be accessed on http://localhost:3000\n\n## Test cases snapshot\nFrontend:\n\n![Snapshot of frontend cases](/docs/frontend-testcases.png)\n\nThanks for your time :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasswarichard%2Freact-typescript-nestjs-mongodb-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasswarichard%2Freact-typescript-nestjs-mongodb-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasswarichard%2Freact-typescript-nestjs-mongodb-docker/lists"}