{"id":22598898,"url":"https://github.com/antoinemcx/react-vite-starter-template","last_synced_at":"2025-04-11T01:21:24.764Z","repository":{"id":183160382,"uuid":"669561135","full_name":"antoinemcx/React-Vite-Starter-Template","owner":"antoinemcx","description":"🚀 Full-stack boilerplate template for React using Vite : JWT authentication, migration system, error pages and more.","archived":false,"fork":false,"pushed_at":"2023-07-23T09:42:14.000Z","size":45,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T05:59:37.533Z","etag":null,"topics":["authentication","eslint","express","mariadb","migrations","react","react-starter-kit","react-template","reactjs","starter-template","vite","website-template"],"latest_commit_sha":null,"homepage":"","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/antoinemcx.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-07-22T17:16:19.000Z","updated_at":"2024-12-16T16:13:42.000Z","dependencies_parsed_at":"2023-07-23T07:48:33.741Z","dependency_job_id":null,"html_url":"https://github.com/antoinemcx/React-Vite-Starter-Template","commit_stats":null,"previous_names":["antoinemcx/react-vite-starter-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinemcx%2FReact-Vite-Starter-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinemcx%2FReact-Vite-Starter-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinemcx%2FReact-Vite-Starter-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinemcx%2FReact-Vite-Starter-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoinemcx","download_url":"https://codeload.github.com/antoinemcx/React-Vite-Starter-Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248323308,"owners_count":21084477,"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":["authentication","eslint","express","mariadb","migrations","react","react-starter-kit","react-template","reactjs","starter-template","vite","website-template"],"created_at":"2024-12-08T11:07:20.732Z","updated_at":"2025-04-11T01:21:24.751Z","avatar_url":"https://github.com/antoinemcx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eReact-Vite-Starter-Template\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    Full-stack starter template for React projects by \u003ca href=\"https://github.com/antoinemcx\"\u003eantoinemcx\u003c/a\u003e using Vite.\u003cbr /\u003e\n    If you like the project, feel free to put a ⭐ ; If you need help, join the \u003ca href=\"https://discord.gg/G6WQsMQShZ\"\u003eserver support\u003c/a\u003e.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca title=\"MIT License\" href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue\" alt=\"MIT License\"\u003e\u003c/a\u003e\n    \u003ca title=\"CodeFactor\" href=\"https://www.codefactor.io/repository/github/antoinemcx/react-vite-starter-template\"\u003e\n        \u003cimg src=\"https://www.codefactor.io/repository/github/antoinemcx/react-vite-starter-template/badge\" alt=\"CodeFactor\"\u003e\n    \u003c/a\u003e\n    \u003ca title=\"Stars\" href=\"[LICENCE](https://github.com/antoinemcx/React-Vite-Starter-Template)\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/stars/antoinemcx/React-Vite-Starter-Template\" alt=\"Stars\"\u003e\n    \u003c/a\u003e\n    \u003ca title=\"Support server\" href=\"https://discord.gg/G6WQsMQShZ\"\u003e\n        \u003cimg src=\"https://img.shields.io/discord/738122381062832180.svg?\u0026logo=discord\u0026logoColor=ffffff\u0026color=7389D8\u0026labelColor=6A7EC2\u0026label=Support\" alt=\"Support server\"\u003e\n    \u003c/a\u003e\n\n   \u003cbr\u003e\n\u003c/p\u003e\n\n## Features\n* 🚀 Full-stack app : ready to code with a starter file structure !\n* 📁 Separated client (React+Vite) and server (express) sides\n* ❌ Custom error paging\n* 🖌️ Integration of FontAwesome\n* ✏️ Pages template with a responsive header and a Title\n* 📡 MariaDB connection with migrations management\n* 🔑 JWT Authentication system\n* 👥 Sign up page with conditional logic and Sign in with \"Remember me\"\n* 🔐 Private routing with a loading message\n* ⚙️ A basic ESLint configuration for the client side\n\n### CRA version\nIf you need you'll find a branch \"[CRA](https://github.com/antoinemcx/React-Vite-Starter-Template/tree/cra)\" for the same application bootstraped with Create-React-App instead of Vite.\n\n\u003cbr\u003e\n\n## Setup the project\n\n### 1. Installation\nFirst, install the dependencies in the two folders separately :\n```sh\n$ cd client ; npm install\n$ cd server ; npm install\n```\n\n### 2. Configuration\nThen, rename the **.env.example** files in the two folders into **.env**  and replace the values if needed.\n\n### 3. Database\nThis template uses on the MariaDB database, a slightly modified version of MySQL.\u003cbr\u003e\nFirst, create the database. The name of the database must be the same as the one set in the **server/.env** file.\u003cbr\u003e\n\n![](https://i.imgur.com/ALeKvsf.png \"Creating a database on phpMyAdmin\")\n\nAfter creating the database, run following command :\n```sh\n$ cd server ; node database/migrations/0.0.0_init_project.js\n```\n\n\u003cbr\u003e\n\n## Scripts\n\nIn development, you will mainly use `npm run start` on both **server/** and **client/** sides ; however, here are the other scripts :\n\n### In the server/ folder\n|`npm run \u003cscript\u003e` |Description|\n|-------------------|-----------|\n|`start`            |Serves your app at `localhost:3001`|\n\n### In the client/ folder\n|`npm run \u003cscript\u003e` |Description|\n|-------------------|-----------|\n|`start`              |Serves your app at `localhost:1234`|\n|`build`            |Builds the application for production to ./dist|\n|`lint`             |[Lints](https://en.wikipedia.org/wiki/Lint_%28software%29) the project to review errors|\n|`preview`          |Preview your production app|\n\n\u003cbr\u003e\n\n## More information\n\nFor any errors found, please contact me [here](https://discord.gg/G6WQsMQShZ) or do a pull request.  \nThis repository is licensed under the MIT License. See the `LICENSE` file ([here](LICENSE)) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoinemcx%2Freact-vite-starter-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoinemcx%2Freact-vite-starter-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoinemcx%2Freact-vite-starter-template/lists"}