{"id":21521279,"url":"https://github.com/web-slate/linkedin-clone-api","last_synced_at":"2025-04-09T22:21:54.504Z","repository":{"id":39753518,"uuid":"449342003","full_name":"web-slate/linkedin-clone-api","owner":"web-slate","description":"LinkedIn Clone Services in Spring Boot","archived":false,"fork":false,"pushed_at":"2022-05-26T07:46:32.000Z","size":150,"stargazers_count":6,"open_issues_count":6,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-18T17:25:58.244Z","etag":null,"topics":["java","jpa","postgresql","spring-boot"],"latest_commit_sha":null,"homepage":"https://linkedincloneapp01.herokuapp.com/api/swagger-ui/index.html","language":"Java","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/web-slate.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}},"created_at":"2022-01-18T15:34:15.000Z","updated_at":"2025-01-20T14:16:43.000Z","dependencies_parsed_at":"2022-09-20T10:14:59.254Z","dependency_job_id":null,"html_url":"https://github.com/web-slate/linkedin-clone-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-slate%2Flinkedin-clone-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-slate%2Flinkedin-clone-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-slate%2Flinkedin-clone-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-slate%2Flinkedin-clone-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-slate","download_url":"https://codeload.github.com/web-slate/linkedin-clone-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120298,"owners_count":21050920,"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":["java","jpa","postgresql","spring-boot"],"created_at":"2024-11-24T01:06:46.530Z","updated_at":"2025-04-09T22:21:54.473Z","avatar_url":"https://github.com/web-slate.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Linkedin Clone API\nLinkedin Clone Application\n\n## Requirements\n\nFor building and running the application you need:\n\n- [JDK 1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)\n- [Maven 3](https://maven.apache.org)\n\n## Setting Up Database in MacOS.\n\n```\n// Install Postgre SQL DB\nbrew install postgresql\n\n// Start, Stop and Restart PostgreSQL Service.\nbrew services start postgresql\nbrew services stop postgresql\nbrew services restart postgresql\n\n// Connect DB.\npsql postgres\n```\n\n### Create New Role `guest` should return `CREATE ROLE`\n```\nCREATE ROLE guest WITH LOGIN PASSWORD 'demo'\n```\n\n### Add Right access to create DB should return `ALTER ROLE`.\n```\nALTER ROLE guest CREATEDB;\n```\n\n### Login in to DB with below user.\n\n```\npsql postgres -U guest\n```\n\n## Install PGAdmin4\nPgAdmin is software to connect DB, create table and execute SQL easier.\n\n```\nbrew install --cask pgadmin4\n```\n\n## Setting up Database without modifying `application.properties`\n\n- Create database name with `dd2jgod4ge5out` in postgres\n- Create user for the created database \n```\n➜  linkedin-clone-api-new git:(main) createuser --interactive --pwprompt\n    Enter name of role to add: umvyqkpzkezvja\n    Enter password for new role: 6fd285461e7f93c0875caa672b5a295c2e9903f026bd0616fd4ba4219102198312\n    Enter it again: 6fd285461e7f93c0875caa672b5a295c2e9903f026bd0616fd4ba4219102198312\n    Shall the new role be a superuser? (y/n) y\n```\n- Connect to the database in terminal/DBevear/any tool to import the .SQL `src/main/resources/DB/DDL` \n\n## Setting up Database host without modifying `application.properties`\n### MacOS\n- Open `/etc/hosts` in edit mode. \n- Add below lines\n```\n127.0.0.1 ec2-44-192-245-97.compute-1.amazonaws.com\nlocalhost ec2-44-192-245-97.compute-1.amazonaws.com\n```\n- Save the file\n- Run\n```sudo killall -HUP mDNSResponder```\n\n## Running the application locally\n\nThere are several ways to run a Spring Boot application on your local machine.\nOne way is to execute the `main` method in the `com.linkedin.network.LinkedInApplication` class from your IDE.\n\nAlternatively you can use the [Spring Boot Maven plugin](https://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-maven-plugin.html) like so:\n\n```shell\n# Configure Database in Local Postgres\nStep 1: CreateTables scripts are available in src/main/resources/DB/DDL. Execute the Scripts in Postgres.\n\nStep 2: Insert your own Values in the Tables T_USER and T_USER_FEED\n\n\nmvn spring-boot:run\n\n# linkedin-clone-api\nLinkedin clone api in Spring Boot\n\n\nClone this project from GIT\n\n# Execution:\nStep 1: Open Terminal - mvn clean install\n\nStep 2: Open Terminal - mvn spring-boot:run -Dspring-boot.run.profiles=local\n\nStep 3: Accessing the application with below url. The default userid and password : admin\nhttp://localhost:8081/api/login?userId=admin\u0026password=admin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-slate%2Flinkedin-clone-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-slate%2Flinkedin-clone-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-slate%2Flinkedin-clone-api/lists"}