{"id":17983967,"url":"https://github.com/devarshishimpi/staticstorm","last_synced_at":"2025-10-19T10:32:15.467Z","repository":{"id":103909721,"uuid":"599539434","full_name":"devarshishimpi/staticstorm","owner":"devarshishimpi","description":"⚡️Effortless Website Deployment - Build simple, fast, and secure websites without worrying about technical expertise or maintenance.","archived":false,"fork":false,"pushed_at":"2023-11-06T23:10:49.000Z","size":1094,"stargazers_count":9,"open_issues_count":6,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-01T16:30:15.437Z","etag":null,"topics":["deployment","devarshishimpi","hacktoberfest","hacktoberfest2023","hacktoberfest2023-accepted","mern","mern-stack","nextjs","react","staticstorm","tailwindcss","vercel"],"latest_commit_sha":null,"homepage":"https://staticstorm.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devarshishimpi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-09T11:01:18.000Z","updated_at":"2024-04-29T20:31:42.000Z","dependencies_parsed_at":"2023-10-13T03:51:24.099Z","dependency_job_id":null,"html_url":"https://github.com/devarshishimpi/staticstorm","commit_stats":null,"previous_names":["devarshishimpi/staticstorm"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devarshishimpi%2Fstaticstorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devarshishimpi%2Fstaticstorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devarshishimpi%2Fstaticstorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devarshishimpi%2Fstaticstorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devarshishimpi","download_url":"https://codeload.github.com/devarshishimpi/staticstorm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222090823,"owners_count":16929472,"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":["deployment","devarshishimpi","hacktoberfest","hacktoberfest2023","hacktoberfest2023-accepted","mern","mern-stack","nextjs","react","staticstorm","tailwindcss","vercel"],"created_at":"2024-10-29T18:19:02.823Z","updated_at":"2025-10-19T10:32:15.381Z","avatar_url":"https://github.com/devarshishimpi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StaticStorm\n\n## Unleash the power of simple, fast and secure websites.\n\n\u003chr\u003e\n\n\u003c!--\nVisit At \u003ca href=\"http://staticstorm.repocraft.com\" target=\"_blank\"\u003estaticstorm.repocraft.com\u003c/a\u003e\n--\u003e\n\n## 🚀 Getting Started\n\nTo run the application locally for development purposes, please follow the instructions below:\n\n- [Development Setup](#development): Deploy the application for local testing and development environment.\n\nFor running the application locally for production purposes, refer to the [Production Setup](#production).\n\n### Development\n\nTo deploy both the frontend and backend for local, follow these steps:\n\n\u003e [!IMPORTANT]\n\u003e We are currently migrating from create-react-app to Nextjs in the frontend, if that's where you want to contribute, please check the following github issue here: [#3](https://github.com/devarshishimpi/staticstorm/issues/3)\n\n#### Prerequisites\n\nBefore you begin, ensure that you have the following prerequisites in place:\n\n- Node.js v16 or above\n\n##### Frontend Setup\n\n1. Clone the project repository:\n\n```bash\ngit clone https://github.com/devarshishimpi/staticstorm\ncd staticstorm\n```\n\n2. Navigate to the frontend directory:\n\n```bash\ncd frontend\n```\n\n3. Install dependencies:\n\n```bash\nnpm install\n```\n\n4. Start the frontend development server:\n\n```bash\nnpm start\n```\n\nThe frontend should now be running locally, and you can access it in your web browser at `http://localhost:3000`.\n\n##### Backend Setup\n\n1. Navigate to the server directory in a new terminal window:\n\n```bash\ncd server\n```\n\n2. Install backend dependencies:\n\n```bash\nnpm install\n```\n\n3. Start the backend server:\n\n```bash\nnode index.js\n```\n\nThe backend should now be running locally, and you can access it in your web browser at `http://localhost:8181`.\n\n### Production\n\nTo deploy both the frontend and backend to proudction, follow these steps:\n\n#### Prerequisites\n\nBefore you begin, ensure that you have the following prerequisites in place:\n\n- Linux Machine (eg: Ubuntu)\n- Nodejs v16 or above\n- Nginx Server\n\n#### Once you are done with that you may proceed to deploy the application:\n\n1. Clone the project repository:\n\n```bash\ngit clone https://github.com/devarshishimpi/staticstorm\ncd staticstorm\n```\n\n2. Navigate to the frontend directory:\n\n```bash\ncd frontend\n```\n\n3. Install dependencies:\n\n```bash\nnpm install\n```\n\n4. Build the frontend:\n\n```bash\nnpm run build\n```\n\n5. Copy the frontend files to the server's HTML directory:\n\n```bash\nsudo cp -rf build /var/www/html\n```\n\n6. Navigate to the server directory:\n\n```bash\ncd ../server\n```\n\n7. Install backend dependencies:\n\n```bash\nnpm install\n```\n\n8. Copy the backend files to the server's HTML directory:\n\n```bash\nsudo cp -rf . /var/www/html\n```\n\n9. Edit the Nginx configuration file:\n\n```bash\nsudo vim /etc/nginx/sites-available/default\n```\n\n10. Update the Nginx configuration to include both frontend and backend as separate locations:\n\n```nginx\nserver {\n    listen 80 default_server;\n    listen [::]:80 default_server;\n\n    root /var/www/html/build;\n\n    index index.html index.htm index.nginx-debian.html;\n\n    server_name _;\n\n    location / {\n        try_files $uri $uri/ /index.html;\n    }\n\n    location /api/ {\n        proxy_pass http://localhost:8181;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    }\n\n    autoindex off;\n\n    location ~* \\.(js|css|png|jpg|jpeg|gif|ico)$ {\n        expires 7d;  # Cache these static assets for 7 days (adjust as needed)\n        add_header Cache-Control \"public, max-age=604800, immutable\";\n    }\n}\n\n```\n\n11. Restart Nginx to apply the configuration changes:\n\n```bash\nsudo service nginx restart\n```\n\n\u003e [!NOTE]\n\u003e If you want to use your custom domain name and subdomain, replace the second `_` in `server_name _;` with your domain name and subdomain.\n\n12. Access Your Application\n\nYou can now access your application in a web browser by navigating to `http://youripaddress`. The frontend will be served from the root, and the backend API will be available at `http://youripaddress/api`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevarshishimpi%2Fstaticstorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevarshishimpi%2Fstaticstorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevarshishimpi%2Fstaticstorm/lists"}