{"id":15154304,"url":"https://github.com/sacred-g/googlemap-basic","last_synced_at":"2026-02-26T18:38:45.883Z","repository":{"id":240319197,"uuid":"802310248","full_name":"Sacred-G/GoogleMap-Basic","owner":"Sacred-G","description":"- Display Google Maps with the ability to add markers. - User registration and login. - OAuth login with GitHub and Google. - Store markers and user information in MongoDB via the Data API.","archived":false,"fork":false,"pushed_at":"2024-05-18T04:01:16.000Z","size":3201,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T14:37:28.323Z","etag":null,"topics":["description","github","githubauth","google-maps","google-maps-api","googleauthenticaion","mongodb","mongodb-database","mongoose","oauth"],"latest_commit_sha":null,"homepage":"","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/Sacred-G.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-05-18T00:35:31.000Z","updated_at":"2024-05-18T04:01:19.000Z","dependencies_parsed_at":"2024-09-02T15:40:57.210Z","dependency_job_id":"a4a73a25-b067-4a96-94bb-11b42bd31234","html_url":"https://github.com/Sacred-G/GoogleMap-Basic","commit_stats":null,"previous_names":["sacred-g/googlemap-basic"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sacred-G%2FGoogleMap-Basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sacred-G%2FGoogleMap-Basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sacred-G%2FGoogleMap-Basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sacred-G%2FGoogleMap-Basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sacred-G","download_url":"https://codeload.github.com/Sacred-G/GoogleMap-Basic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648928,"owners_count":20972942,"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":["description","github","githubauth","google-maps","google-maps-api","googleauthenticaion","mongodb","mongodb-database","mongoose","oauth"],"created_at":"2024-09-26T17:21:09.988Z","updated_at":"2026-02-26T18:38:45.851Z","avatar_url":"https://github.com/Sacred-G.png","language":"JavaScript","readme":"# GoogleMap-Basic\n\nA web application that integrates Google Maps with markers, user authentication (including GitHub and Google OAuth), and a MongoDB backend using the MongoDB Data API.\n\n## Features\n\n- Display Google Maps with the ability to add markers.\n- User registration and login.\n- OAuth login with GitHub and Google.\n- Store markers and user information in MongoDB via the Data API.\n- Secure marker addition with JWT authentication.\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js\n- MongoDB Atlas account\n- Google Cloud Platform account\n- GitHub account\n\n### Installation\n\n1. **Clone the repository**:\n\n    ```bash\n    git clone https://github.com/sacred-g/GoogleMap-Basic.git\n    cd GoogleMap-Basic\n    ```\n\n2. **Install dependencies**:\n\n    ```bash\n    npm install\n    ```\n\n3. **Create a `.env` file**:\n\n    Create a `.env` file in the root of your project directory and add the following content:\n\n    ```plaintext\n    MONGO_API_KEY=your_mongo_api_key\n    JWT_SECRET=your_jwt_secret_key\n    GITHUB_CLIENT_ID=your_github_client_id\n    GITHUB_CLIENT_SECRET=your_github_client_secret\n    GOOGLE_CLIENT_ID=your_google_client_id\n    GOOGLE_CLIENT_SECRET=your_google_client_secret\n    ```\n\n    Replace the placeholder values with your actual API keys and secrets.\n\n4. **Set up Google OAuth**:\n\n    - Go to the [Google Cloud Console](https://console.cloud.google.com/).\n    - Create a new project or select an existing project.\n    - Navigate to the **APIs \u0026 Services** dashboard and create OAuth 2.0 Client IDs.\n    - Set the redirect URI to `http://localhost:3000/auth/google/callback`.\n    - Add the Client ID and Client Secret to your `.env` file.\n\n5. **Set up GitHub OAuth**:\n\n    - Go to [GitHub Developer Settings](https://github.com/settings/developers).\n    - Register a new OAuth application.\n    - Set the callback URL to `http://localhost:3000/auth/github/callback`.\n    - Add the Client ID and Client Secret to your `.env` file.\n\n6. **Start the server**:\n\n    ```bash\n    cd server\n    node server.js\n    ```\n\n7. **Run the application**:\n\n    Open your browser and navigate to `http://localhost:3000/login.html` to see the login page. You can register or log in using the forms or authenticate with GitHub or Google.\n```\n## Folder Structure \n**GoogleMap-Basic**\n\nGoogleMap-Basic/\n│\n├── server/                   # Backend server code\n│   ├── models/               # Database models\n│   │   ├── marker.js         # Marker model\n│   │   └── user.js           # User model\n│   └── server.js             # Main server file\n│\n├── public/                   # Frontend code\n│   ├── index.html            # Main HTML file\n│   ├── login.html            # Login HTML file\n│   ├── register.html         # Register HTML file\n│   ├── styles.css            # CSS file for styling\n│   └── script.js             # JavaScript file for client-side logic\n│\n├── .env                      # Environment variables\n├── .gitignore                # Git ignore file\n├── package.json              # Node.js dependencies and scripts\n└── README.md                 # Project documentation\n\n```\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n### Ensure you have the .env file in the root directory\n\n## Steps to install\n####Ensure you have installed all the required dependencies by running:\n\nnpm install\n\n### Start the server\ncd server\nnode server.js\n\n\n### Open the Application:\n\nOpen your browser and navigate to http://localhost:3000/login.html to see the login page.\n\nRegister or log in using the forms.\n\nAlternatively, log in using GitHub or Google.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsacred-g%2Fgooglemap-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsacred-g%2Fgooglemap-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsacred-g%2Fgooglemap-basic/lists"}