{"id":28540622,"url":"https://github.com/tendaysofclojure/technical-assessment","last_synced_at":"2025-07-31T12:05:53.417Z","repository":{"id":264750713,"uuid":"894203951","full_name":"TenDaysOfClojure/technical-assessment","owner":"TenDaysOfClojure","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-16T05:34:10.000Z","size":4703,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T19:49:26.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/TenDaysOfClojure.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,"zenodo":null}},"created_at":"2024-11-26T00:01:37.000Z","updated_at":"2024-12-24T13:22:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"8de5e65b-db43-4eaf-9d8d-61f04e387e53","html_url":"https://github.com/TenDaysOfClojure/technical-assessment","commit_stats":null,"previous_names":["tendaysofclojure/technical-assessment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TenDaysOfClojure/technical-assessment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TenDaysOfClojure%2Ftechnical-assessment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TenDaysOfClojure%2Ftechnical-assessment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TenDaysOfClojure%2Ftechnical-assessment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TenDaysOfClojure%2Ftechnical-assessment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TenDaysOfClojure","download_url":"https://codeload.github.com/TenDaysOfClojure/technical-assessment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TenDaysOfClojure%2Ftechnical-assessment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268035615,"owners_count":24185064,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-06-09T19:36:54.464Z","updated_at":"2025-07-31T12:05:53.398Z","avatar_url":"https://github.com/TenDaysOfClojure.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Technical assessment\n\n## Objective\n\n\u003e Create a Clojure-based web app that allows users to sign up via Facebook, retrieves user details (first name, last name, email, and profile picture), and saves this data to a local database. The profile picture should be retrieved from Facebook and uploaded to Cloudinary, and the Cloudinary URL should be stored in the local database.\n\n\n## Requirements and Key Features\n\n- User Signup with Facebook\n  - Implement Facebook Login using the Facebook API\n  - Retrieve user information such as:\n    - First Name\n    - Last Name\n    - Email Address\n    - Profile Picture URL\n  - This will require setting up a Facebook Developer Account and registering an application in development mode to obtain credentials (App ID, Secret)\n- Data Storage\n  - Save the retrieved user details in a database\n  - The database can be any preferred option\n- Profile Picture processing\n  - Retrieve the user’s profile picture from Facebook using the URL provided via the Facebook API\n  - Upload the profile picture to Cloudinary\n  - Save the Cloudinary URL of the uploaded image to the user’s record in the database\n  - This will require setting up a Cloudinary account to create an API key and secret\n- Consider error handling and testing where appropriate\n\n\n\n## Development environment\n\n### Database\n\nDuring development, you can configure the XTDB node type using the `XTDB_NODE_TYPE` environment variable. Two options are available:\n\n1.\tIn-Process Node (`XTDB_NODE_TYPE=\"in-process\"`) which is the default if the environment variable is not provided.\nThis option runs the XTDB node within your application process. It is ideal for testing, interactive development, REPL experimentation.\n\nIn-process data is transiently and will be lost when your REPL or process is termianted.\n\n2.\tRemote XTDB Server (`XTDB_NODE_TYPE=\"http://localhost:6543\"`) which connects to a remote XTDB server via an HTTP API by specifying the server URL, e.g., http://localhost:6543.\n\nTo start a standalone (non-production, non-distributed) XTDB server locally, use the following Docker command:\n\n```\ndocker run -it --pull=always -p 6543:3000 -p 5432:5432 ghcr.io/xtdb/xtdb\n```\n\nBy default, data will only be stored transiently within the docker container. To persist data across container restarts, attach a host volume. For example, to persist data to a local directory (e.g. `/tmp/xtdb-data-remote`):\n\n```\ndocker run -v /tmp/xtdb-data-remote:/var/lib/xtdb -it --pull=always -p 6543:3000 -p 5432:5432 ghcr.io/xtdb/xtdb\n```\n\n### Starting a REPL\n\nTo start a local nREPL (with CIDER and refactor-nrepl enabled) use the following\ncommmand in a new terminal:\n\n* Note - see the [Environment Variables Documentation](https://github.com/TenDaysOfClojure/technical-assessment?tab=readme-ov-file#environment-variables-documentation) section for required\nenvironment variables for integration configuration.\n\n```bash\nclj -M:repl\n```\n\nYou can then connect to the local REPL with your preferred editor e.g. Emacs,\nVSCode, IntelliJ IDEA etc\n\nFor CSS assests see the README in the `css` directory.\n\n### Managing the HTTP server from the REPL\n\nA `dev/scratch.clj` file is provided with code that can start/stop\nthe HTTP server and perform general tasks.\n\nWhen connected to the REPL, open the file and evaluate the relevant code.\n\nTo confirm if the server is up and running, open a http://localhost:3000 in your browser.\n\n### Running the app locally (non REPL)\n\nTo start the HTTP server on the default port (3000),  from a new terminal use the following command:\n\n* Note - see the [Environment Variables Documentation](https://github.com/TenDaysOfClojure/technical-assessment?tab=readme-ov-file#environment-variables-documentation) section for required\nenvironment variables for integration configuration.\n\n```\nclj -M:run\n```\n\n### Running tests\n\nTo run unit tests, from a new terminal use the following command:\n\n```\nclj -A:test\n```\n\n### Environment Variables Documentation\n\nThe following environment variables are supported:\n\n- **XTDB_NODE_TYPE** - The type of XTDB node to use, either \"in-process\" (default if environment variable not provided) or the remote node's url e.g. \"http://localhost:6543\"\n\n- **FACEBOOK_AUTH_APP_ID** - The App ID for Facebook authentication\n\n- **FACEBOOK_AUTH_SECRET** - The client secret for Facebook authentication\n\n- **FACEBOOK_AUTH_REDIRECT_URL** The redirect URI for Facebook authentication. Use \"http://localhost:3000/auth/facebook/callback\" for local development\n\n- **CLOUDINARY_CLOUD_NAME** The Cloudinary cloud name\n\n- **CLOUDINARY_API_KEY** - The API key for Cloudinary\n\n- **CLOUDINARY_API_SECRET** - The API secret for Cloudinary\n\n- **HTTP_PORT** - Indicates if port that the HTTP server should run on, defaults to 3000\n\n- **PRODUCTION_ENV** - Indicates if the environment is production\n\n### Example of Starting a REPL with Environment Variables\n\nTo start a REPL with the required environment variables, you can use the following command:\n\n```sh\nFACEBOOK_AUTH_APP_ID=your_facebook_app_id \\\nFACEBOOK_AUTH_SECRET=your_facebook_secret \\\nFACEBOOK_AUTH_REDIRECT_URL=\"http://localhost:3000/auth/facebook/callback\" \\\nCLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name \\\nCLOUDINARY_API_KEY=your_cloudinary_api_key \\\nCLOUDINARY_API_SECRET=your_cloudinary_api_secret \\\nclj -M:repl\n```\n\n\n```sh\nFACEBOOK_AUTH_APP_ID=your_facebook_app_id \\\nFACEBOOK_AUTH_SECRET=your_facebook_secret \\\nFACEBOOK_AUTH_REDIRECT_URL=\"http://localhost:3000/auth/facebook/callback\" \\\nCLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name \\\nCLOUDINARY_API_KEY=your_cloudinary_api_key \\\nCLOUDINARY_API_SECRET=your_cloudinary_api_secret \\\nclj -M:run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftendaysofclojure%2Ftechnical-assessment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftendaysofclojure%2Ftechnical-assessment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftendaysofclojure%2Ftechnical-assessment/lists"}