{"id":23893567,"url":"https://github.com/devlopersabbir/full-stack-app-with-vite-and-typeorm","last_synced_at":"2025-02-23T06:15:20.806Z","repository":{"id":148067345,"uuid":"614001304","full_name":"devlopersabbir/full-stack-app-with-vite-and-typeorm","owner":"devlopersabbir","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-20T19:18:58.000Z","size":107,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-04T14:27:57.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/devlopersabbir.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-14T17:34:29.000Z","updated_at":"2023-03-17T11:28:10.000Z","dependencies_parsed_at":"2023-03-31T17:03:24.543Z","dependency_job_id":null,"html_url":"https://github.com/devlopersabbir/full-stack-app-with-vite-and-typeorm","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/devlopersabbir%2Ffull-stack-app-with-vite-and-typeorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlopersabbir%2Ffull-stack-app-with-vite-and-typeorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlopersabbir%2Ffull-stack-app-with-vite-and-typeorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlopersabbir%2Ffull-stack-app-with-vite-and-typeorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlopersabbir","download_url":"https://codeload.github.com/devlopersabbir/full-stack-app-with-vite-and-typeorm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240275924,"owners_count":19775615,"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-01-04T14:27:59.033Z","updated_at":"2025-02-23T06:15:20.768Z","avatar_url":"https://github.com/devlopersabbir.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/devlopersabbir"],"categories":[],"sub_categories":[],"readme":"This is a full-stack project. And this project was created with [ViteJs](https://vitejs.dev/) for the front end and also for backend [Nodejs](https://nodejs.org/en/). Also, I used [TyprORM](https://typeorm.io/) for database design.\n\nVideo available on the youtube\n```\nhttps://youtu.be/m3_qqCoLs00\n```\nor [CLICK ME](https://youtu.be/m3_qqCoLs00)\n\nTo use this code, you have to just clone this repository with this command and following the below command\n```\ngit clone https://github.com/devlopersabbir/full-stack-app-with-vite-and-typeorm.git\n```\nNow you can see, here have two different folders called `api` and `client`\n - Now, just go to the api folder with `cd api` command and then make a command `yarn` or `npm install` if you are using yarn then you can use just `yarn` otherwise you can use `npm install`.\n - In the same way, you have to change your directory using `cd ../client` then just make `yarn` or `npm install` command. That's it.\n\n\u003e So far our repository clone successfully and also our dependency installed.\n\nNow, we have to create our database inside our localhost. For this purpose, I'm using [MySQL](https://www.mysql.com/) and to run the local server I used [Xammp](https://www.apachefriends.org/) which is very popular. Or if you want you can use any others application to run your localhost server and DB. \n#### If you are finished everything with me then, I have to must say congratulations.\nAt that time, we have to just change our DB name.\n```js\nexport const AppDataSource = new DataSource({\n\ttype: \"mysql\", // this is our DB type. at that moment I'm using mySQL database\n\thost: \"localhost\", // It's our hostname\n\tport: 3306, // and this is our port number. If you want you can search on the google what is the port number for mySQL db. then you found it very easyly\n\tusername: \"root\", // this is user DB username\n\tpassword: \"\", // And this is our DB password\n\tdatabase: \"youtube\", // my database name is {{youtube}}\n\tsynchronize: false, // for the one time you have replaced with false to true\n\tlogging: false, // if you make it logging: true then you can see all log in your console\n\tentities: [Books], // It's our entity...\n});\n```\nYou can find this code into your `api/src/data-source.ts` directory.\n##### Alright, everything is finished\nNow we are ready to run our `client side` and also `api` to do that, just type\n```\nFor backend start\nnpm run dev\nor\nyarn dev\n\nFor front-end start\nnpm run dev\nor\nyarn dev\n```\n\n## For Support just Buy Me A Coffee\nhttps://www.buymeacoffee.com/devlopersabbir\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlopersabbir%2Ffull-stack-app-with-vite-and-typeorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlopersabbir%2Ffull-stack-app-with-vite-and-typeorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlopersabbir%2Ffull-stack-app-with-vite-and-typeorm/lists"}