{"id":25229036,"url":"https://github.com/ajthinking/stackoverflow-clone-client","last_synced_at":"2025-04-05T14:12:38.989Z","repository":{"id":95889725,"uuid":"556307759","full_name":"ajthinking/stackoverflow-clone-client","owner":"ajthinking","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-23T14:59:05.000Z","size":3140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T10:47:24.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"stackoverflow-clone-client-omega.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/ajthinking.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-23T14:58:57.000Z","updated_at":"2023-03-17T13:22:51.000Z","dependencies_parsed_at":"2023-03-13T16:43:37.637Z","dependency_job_id":null,"html_url":"https://github.com/ajthinking/stackoverflow-clone-client","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/ajthinking%2Fstackoverflow-clone-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajthinking%2Fstackoverflow-clone-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajthinking%2Fstackoverflow-clone-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajthinking%2Fstackoverflow-clone-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajthinking","download_url":"https://codeload.github.com/ajthinking/stackoverflow-clone-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345845,"owners_count":20924102,"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":"2025-02-11T10:46:58.506Z","updated_at":"2025-04-05T14:12:38.984Z","avatar_url":"https://github.com/ajthinking.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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 browser or 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajthinking%2Fstackoverflow-clone-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajthinking%2Fstackoverflow-clone-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajthinking%2Fstackoverflow-clone-client/lists"}