{"id":18521691,"url":"https://github.com/transferwise/wwc-apac-2024","last_synced_at":"2025-05-14T18:09:05.215Z","repository":{"id":224555898,"uuid":"763571383","full_name":"transferwise/wwc-apac-2024","owner":"transferwise","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-17T02:37:32.000Z","size":539,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":39,"default_branch":"main","last_synced_at":"2025-02-17T05:24:26.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/transferwise.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":"2024-02-26T14:45:13.000Z","updated_at":"2024-02-26T14:48:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6d1f9d9-4855-4922-a12c-145c026724f2","html_url":"https://github.com/transferwise/wwc-apac-2024","commit_stats":null,"previous_names":["transferwise/wwc-apac-2024"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Fwwc-apac-2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Fwwc-apac-2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Fwwc-apac-2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Fwwc-apac-2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transferwise","download_url":"https://codeload.github.com/transferwise/wwc-apac-2024/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198511,"owners_count":22030966,"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":"2024-11-06T17:27:06.529Z","updated_at":"2025-05-14T18:09:00.205Z","avatar_url":"https://github.com/transferwise.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wwc-apac-2024\nWorkshop for Wise Woman Code APAC 2024\n\n## Tasks for the workshop\n\nSee [Tasks](tasks.md)\n\n## Getting Started\n\n### First, run the development server:\n\n```bash\nnpm run dev\n```\n\n### Then start the docker containers for DB, backend and frontend.\nNextjs development mode by default will already have hot-reloading for frontend pages.\nThe development docker will use nodemon to ensure hot-reloading for the api routes too.\n```bash\nnpm run docker:dev\n```\n### Once the DB is up, the following command will run the db migrations and see the database.\n```bash\nnpm run setup:dev\n```\n\n# Run all tests\n\n```bash\nnpm run test\n```\n\nRunning of frontend tests:\n\n```bash\n\nnpm run test -- \"frontend\"\n\n```\n\n\nRunning of backend tests:\n\n```bash\n\nnpm run test -- \"api\"\n\n```\n\n# Run a specific test\n\nFor example,\nRunning the tests in the \"/api/transfers\" folder:\n\n```bash\n\nnpm run test -- \"api/transfers\"\n\nnpm run test -- \"api/transfers/route.test.js\"\n```\n\nAny of the above will work because jest does a regex search of the tests.\n\n\n# Connecting to the database \n\nDBeaver is one of the options you could use to connect to the database.\n\nHost: localhost\nPort: 5432\nDatabse: wise\nUsername: wwc-apac\nPassword: STRONGpass\n\n\n# Note about Environment Variables\n\nThe `.env.local` and `.env.migrate` are included in this project because there are no real secrets in them - the local database user and password is not really a secret because they are already in the Dockerfile. If we were really to make a production-ready project, it should read the database env variables from somewhere safer like a secrets vault in AWS.\n\nNextjs will automatically load `.env.local` as `process.env` variables, but for knex commands we use `dotenv-cli` to load the env variables.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransferwise%2Fwwc-apac-2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransferwise%2Fwwc-apac-2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransferwise%2Fwwc-apac-2024/lists"}