{"id":14968169,"url":"https://github.com/salihozdemir/stackoverflow-clone","last_synced_at":"2025-04-04T08:08:21.650Z","repository":{"id":38990605,"uuid":"280108231","full_name":"salihozdemir/stackoverflow-clone","owner":"salihozdemir","description":"This project is a simplified a full stack clone of Stackoverflow.","archived":false,"fork":false,"pushed_at":"2023-01-06T21:42:25.000Z","size":1197,"stargazers_count":685,"open_issues_count":23,"forks_count":182,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-28T07:07:55.458Z","etag":null,"topics":["context-api","express","mongodb","moongose","nextjs","nodejs","postcss","react","storybook"],"latest_commit_sha":null,"homepage":"https://clone-of-stackoverflow.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/salihozdemir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-16T09:12:45.000Z","updated_at":"2025-03-23T22:01:57.000Z","dependencies_parsed_at":"2023-02-06T09:17:01.626Z","dependency_job_id":null,"html_url":"https://github.com/salihozdemir/stackoverflow-clone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salihozdemir%2Fstackoverflow-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salihozdemir%2Fstackoverflow-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salihozdemir%2Fstackoverflow-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salihozdemir%2Fstackoverflow-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salihozdemir","download_url":"https://codeload.github.com/salihozdemir/stackoverflow-clone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142066,"owners_count":20890652,"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":["context-api","express","mongodb","moongose","nextjs","nodejs","postcss","react","storybook"],"created_at":"2024-09-24T13:39:26.855Z","updated_at":"2025-04-04T08:08:21.631Z","avatar_url":"https://github.com/salihozdemir.png","language":"JavaScript","readme":"## Stackoverflow Clone\n - Live: http://clone-of-stackoverflow.vercel.app/\n\nThis project is a simplified a full stack clone of Stackoverflow. I wrote it to learn more about Nodejs, React/Next, pixel perfect design and NoSQL databases in general. Feel free to contribute!\n\n## :rocket: Tech Stack\n\n- ReactJs\n- NextJs\n- Storybook\n- PostCSS\n- NodeJs\n- Express\n- MongoDB\n- Mongoose\n\n## :warning: Prerequisite\n\n- node\n- npm\n- mongodb\n\n## :cd: How to run local\n\n```bash\n# Clone this repository\n$ git clone https://github.com/salihozdemir/stackoverflow-clone\n\n# Go into the repository\n$ cd stackoverflow-clone\n\n# Go into server\n$ cd server\n\n# Start mongodb locally\n$ mongod\n\n# Install dependencies\n$ npm install\n\n# Start the backend server\n$ npm run dev\n\n# On another terminal, go to the client folder\n$ cd ../client\n\n# Install dependencies\n$ npm install\n\n# Use the command below for Android devices\n$ npm run dev\n\n# To see the incomplete storybook components\nnpm run storybook\n```\n\n## :mag_right: Testing\n\nMake sure mongodb is running before testing the server.\n\n```bash\n$ cd server\n$ yarn test\n```\n\n\u003csub\u003eThere are missing tests on the server side and there are no tests on the client side yet.\u003c/sub\u003e\n\n## :globe_with_meridians: Deploy\n\n#### Deploying Server App on Heroku\n\n-  You will need to have setup a [MongoDB Atlas account and database](https://docs.atlas.mongodb.com/getting-started/).\n- Make sure that the cluster has allowlisted connections from anywhere.\n- Create a [Heroku](https://dashboard.heroku.com/new-app) new app.\n- Go to app settings\n- Add the following enviroments.\n  - DATABASE_URL (to use your MongoDB connection string)\n  - JWT_SECRET\n- Add Nodejs to buildpacks\n\n- \n        # Go into the repository\n        $ cd stackoverflow-clone\n\n        # Heroku Setup\n        $ npm install -g heroku\n        $ heroku login\n        $ heroku git:remote -a your-app-name\n\n        # push subdirectory repository with subtree\n        $ git subtree push --prefix server heroku master\n\n\n#### Deploying Client App on Vercel\n\n- [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/git?s=https%3A%2F%2Fgithub.com%2Fsalihozdemir%2Fstackoverflow-clone\u0026env=SITE_NAME\u0026envDescription=SITE_NAME%20needed%20for%20api%20url)\n\n- Select client directory \n- Add heroku api url to SITE_NAME enviorement\n- Finally deploy client application\n\n## :scroll: Todo\n\n- [ ] Add missing components to storybook\n- [ ] Complete missing server tests\n- [ ] Add text editor for post\n\n## :memo: License\n\nThis project is made available under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalihozdemir%2Fstackoverflow-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalihozdemir%2Fstackoverflow-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalihozdemir%2Fstackoverflow-clone/lists"}