{"id":21493068,"url":"https://github.com/ansinitro/weather_website_2","last_synced_at":"2025-03-17T11:40:51.142Z","repository":{"id":222166018,"uuid":"756458688","full_name":"ansinitro/Weather_Website_2","owner":"ansinitro","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-29T09:44:06.000Z","size":9559,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T21:19:31.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"EJS","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/ansinitro.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}},"created_at":"2024-02-12T17:49:50.000Z","updated_at":"2024-04-12T20:30:03.000Z","dependencies_parsed_at":"2024-04-13T05:14:59.867Z","dependency_job_id":"042a40dc-cf3e-4fb8-a7df-e905d8c43967","html_url":"https://github.com/ansinitro/Weather_Website_2","commit_stats":null,"previous_names":["ansilucky/weather_website_2","ansinitro/weather_website_2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansinitro%2FWeather_Website_2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansinitro%2FWeather_Website_2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansinitro%2FWeather_Website_2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansinitro%2FWeather_Website_2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansinitro","download_url":"https://codeload.github.com/ansinitro/Weather_Website_2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244029425,"owners_count":20386403,"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-23T15:37:19.306Z","updated_at":"2025-03-17T11:40:51.114Z","avatar_url":"https://github.com/ansinitro.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather App\n\nThis Weather App provides current weather, 3-hour forecast, 14-day extended forecast and city-related information for cities around the world.\nThe app defaults to displaying weather information for 'Almaty' on the first visit. Users can then input their preferred city.\n\n### Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- Node.js\n- npm (Node Package Manager)\n\n### Run Website\n\n```bash\ngit clone https://github.com/AnsiLucky/Weather_Website_2\ncd Weather_Website_2\nnpm install\nnode server.js\n```\n\nby default server will start at `http://localhost:3000`\n\n## For Admin Status\n`localhost:3000/admin` - by default\n- login : `admin@gmail.com`\n- password : `admin_123`\n\n## APIs Used\n\n1.  **OpenWeatherMap API**\n    - Endpoint: `http://api.openweathermap.org/data/2.5/forecast`\n    - Usage: Weahter Info\n2.  **Visual Crossing**\n    - Endpoint: `https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/`\n    - Usage: Weahter Info\n3.  **City Info API Dev Me**\n    - Endpoint: `https://dev.me/api/module-app/v1-get-city-details?name=${city}`\n    - Usage: City Info\n4.  **Source Unsplash API**\n    - Endpoint: `https://source.unsplash.com/1600x900`\n    - Usage: Random Photos from city\n\n\n## File Structure\n\nThe project has the following folder structure:\n\n- `config` : Stores configuration.\n- `utils` : Utilits which help retrive the information.\n- `models` : Models of MongoDB.\n- `public` : Contains static files (CSS, images, js).\n- `routers` : Routes for sertain endpoints.\n- `views` : HTML templates for rendering pages.\n\n## Dependencies\n\n- `bcrypt` : encryption the password\n- `cors` : zhai na vsyaki\n- `ejs` : rendering the templates\n- `express` : server\n- `express-flash` : flash the messages\n- `express-session` : session-cookies\n- `mongoose` : mongoDB\n- `pdfkit` : PDF creater\n- `dotenv` : environment variables\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansinitro%2Fweather_website_2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansinitro%2Fweather_website_2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansinitro%2Fweather_website_2/lists"}