{"id":19109282,"url":"https://github.com/obrm/connect-front-to-back-vite","last_synced_at":"2026-04-11T01:36:04.095Z","repository":{"id":210514195,"uuid":"615786064","full_name":"obrm/connect-front-to-back-vite","owner":"obrm","description":"This repository contains a MERN stack project that demonstrates how to connect a front-end React application created with Vite to a back-end Node/Express API. It can serve as a boilerplate project for a MERN stack application, providing a solid foundation for building scalable and maintainable applications.","archived":false,"fork":false,"pushed_at":"2023-12-03T09:37:42.000Z","size":58,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T10:57:25.794Z","etag":null,"topics":["boilerplate","dotenv","express","full-stack","mongoose","react","vite"],"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/obrm.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}},"created_at":"2023-03-18T17:13:40.000Z","updated_at":"2024-10-24T01:03:24.000Z","dependencies_parsed_at":"2023-12-03T10:36:21.704Z","dependency_job_id":null,"html_url":"https://github.com/obrm/connect-front-to-back-vite","commit_stats":null,"previous_names":["obrm/connect-front-to-back-vite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/obrm/connect-front-to-back-vite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obrm%2Fconnect-front-to-back-vite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obrm%2Fconnect-front-to-back-vite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obrm%2Fconnect-front-to-back-vite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obrm%2Fconnect-front-to-back-vite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obrm","download_url":"https://codeload.github.com/obrm/connect-front-to-back-vite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obrm%2Fconnect-front-to-back-vite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265747272,"owners_count":23821859,"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":["boilerplate","dotenv","express","full-stack","mongoose","react","vite"],"created_at":"2024-11-09T04:19:50.179Z","updated_at":"2026-04-11T01:35:59.052Z","avatar_url":"https://github.com/obrm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect Front to Back - MERN Stack Project\n\nThis repository contains a MERN (MongoDB, Express, React, Node) stack project that demonstrates how to connect a front-end React application to a back-end Node/Express API. It can serve as a boilerplate project for a MERN stack application, providing a solid foundation for building scalable and maintainable applications. \nThe project is based on the following tutorial I wrote: [Setting up a Full Stack React \u0026 Node.js Project: A Comprehensive Cheat Sheet.](https://medium.com/@obrm770/setting-up-a-full-stack-react-node-js-project-a-comprehensive-cheat-sheet-ee326576c21a)\n\n\n## Table of Contents \n\n- [Connect Front to Back - MERN Stack Project](#connect-front-to-back---mern-stack-project)\n  - [Table of Contents](#table-of-contents)\n      - [Prerequisites](#prerequisites)\n      - [Setup](#setup)\n      - [Running the Application](#running-the-application)\n      - [Contributing](#contributing)\n  - [License](#license)\n\n#### Prerequisites\n\nBefore you start, ensure you have the following installed:\n\n* [Node.js](https://nodejs.org/en/download) (v14.x or later)\n* [npm](https://www.npmjs.com/get-npm) (v7.x or later)\n* [yarn](https://classic.yarnpkg.com/lang/en/docs/install) (v1.x or later)\n\n#### Setup\n\nTo set up the project, follow these steps:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/obrm/connect-front-to-back.git\n```\n\n2. Install the necessary dependencies:\n\n```bash\nnpm install\n```\n\n3. Create a config.env file in the config directory:\n\n```bash\ncd config\ntouch config.env\n```  \n4. Add the following lines to your config.env file:\n```env\nNODE_ENV=development\nPORT=5000\n```\n\n6. Navigate to the client directory:\n```bash\ncd ..\ncd client\n```\n7. Install the necessary dependencies[^1]:\n```bash\nyarn\n```\n\n#### Running the Application\n\nTo run the application, in the root directory, start the Node/Express server and the react application concurrently:\n\n```bash\nnpm run dev\n```\nThe server will be running on `http://localhost:5000` and the React Vite application will be running on `http://localhost:5173`.\n\nNow you have both the front-end and back-end servers running. You can interact with the application through the browser on `http://localhost:5173` and see how the front-end React app communicates with the back-end Node/Express API.\n\n#### Contributing\n\nWe welcome contributions to this project. To contribute, follow these steps:\n\n1. Fork the repository.\n2. Create a new branch: `git checkout -b \u003cbranch_name\u003e`.\n3. Make your changes and commit them: `git commit -m '\u003ccommit_message\u003e'`.\n4. Push the changes to the new branch: `git push origin \u003cbranch_name\u003e`.\n5. Create a pull request.\n\nPlease ensure your code adheres to the existing style and that you properly document your changes.\n\n## License\n\nThis project is licensed under the MIT License. \n\n[^1]: If you don't have yarn installed on your machine, then first run: `npm install -g yarn`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobrm%2Fconnect-front-to-back-vite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobrm%2Fconnect-front-to-back-vite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobrm%2Fconnect-front-to-back-vite/lists"}