{"id":19522521,"url":"https://github.com/lintangwisesa/react_rnative_express_mongodb","last_synced_at":"2025-04-26T09:32:14.185Z","repository":{"id":121864199,"uuid":"143122888","full_name":"LintangWisesa/React_RNative_Express_MongoDB","owner":"LintangWisesa","description":"Simple GET \u0026 POST app using React, React Native, Express \u0026 MongoDB","archived":false,"fork":false,"pushed_at":"2018-08-08T03:49:07.000Z","size":1418,"stargazers_count":34,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T10:37:10.802Z","etag":null,"topics":["expressjs","mongodb","nodejs","react","react-native"],"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/LintangWisesa.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-01T07:53:54.000Z","updated_at":"2023-10-14T20:52:55.000Z","dependencies_parsed_at":"2023-04-13T08:20:38.274Z","dependency_job_id":null,"html_url":"https://github.com/LintangWisesa/React_RNative_Express_MongoDB","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/LintangWisesa%2FReact_RNative_Express_MongoDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LintangWisesa%2FReact_RNative_Express_MongoDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LintangWisesa%2FReact_RNative_Express_MongoDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LintangWisesa%2FReact_RNative_Express_MongoDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LintangWisesa","download_url":"https://codeload.github.com/LintangWisesa/React_RNative_Express_MongoDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250967276,"owners_count":21515567,"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":["expressjs","mongodb","nodejs","react","react-native"],"created_at":"2024-11-11T00:39:26.143Z","updated_at":"2025-04-26T09:32:14.177Z","avatar_url":"https://github.com/LintangWisesa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#\n\n![simplinnovation](https://4.bp.blogspot.com/-f7YxPyqHAzY/WJ6VnkvE0SI/AAAAAAAADTQ/0tDQPTrVrtMAFT-q-1-3ktUQT5Il9FGdQCLcB/s350/simpLINnovation1a.png)\n\n# React :heart: React Native :yellow_heart: Express :green_heart: MongoDB\n\n[![Video](https://img.youtube.com/vi/EZNLq3SVdv4/0.jpg)](https://www.youtube.com/watch?v=EZNLq3SVdv4)\n\n## __1. Setup MongoDB Database__\n\n- Activate MongoDB server, then create a __*dojo*__ database with a __*ninja*__ collection. Don't forget to create your database user:\n\n    ```bash\n    $ use dojo\n    \n    $ db.createUser({\n        user: 'your_username',\n        pwd: 'your_password',\n        roles: ['readWrite', 'dbAdmin'] \n        })\n\n    $ db.createCollection('ninja')\n    ```\n\n- Insert some data, as initial data, into __*ninja*__ collection:\n\n    ```bash\n    $ db.ninja.insert([\n        {nama: 'Andi', usia: 22},\n        {nama: 'Budi', usia: 23}\n        ])\n    \n    $ db.ninja.find().pretty();\n    ```\n- __Done!__ :thumbsup:\n\n#\n\n## __2. Setup Node.js Backend Project__\n\n- Clone this repo, go to __*Express_Backend*__ folder then install all dependencies:\n\n    ```bash\n    $ git clone https://github.com/LintangWisesa/React_RNative_Express_MongoDB.git\n\n    $ cd React_RNative_Express_MongoDB/Express_Backend\n\n    $ npm i\n    ```\n\n- Open __*app.js*__ \u0026 edit this line to configure your database:\n    \n    ```javascript\n    var url = 'mongodb://user:password@localhost:27017/dojo';\n    ```\n\n- Save it, then run your backend project. It will run at __*localhost:3210*__:\n\n    ```bash\n    $ node app\n    ```\n\n- __Done!__ :thumbsup:\n\n#\n\n## __3. Setup React Frontend Project__\n\n- Go to __*React_Frontend*__ folder, install all dependencies then run this project:\n\n    ```bash\n    $ cd React_RNative_Express_MongoDB/React_Frontend\n\n    $ npm i\n\n    $ npm start\n    ```\n\n- It will run at __*localhost:3000*__ \u0026 open in browser automatically! __Done!__ :thumbsup:\n\n#\n\n## __4. Setup React Native Android Project__\n\n- Activate your __*AVD (Android Virtual Device)*__. In this project, I'm using __*Genymotion*__. It's much lighter than Android Studio's AVD.\n\n- Go to __*RNative_Mobile*__ folder, install all dependencies then run this project:\n\n    ```bash\n    $ cd React_RNative_Express_MongoDB/RNative_Mobile\n\n    $ npm i\n\n    $ react-native run-android\n    ```\n\n- __Done!__ :thumbsup:\n\n#\n\n__See also:__\n- [React :heart: React Native :yellow_heart: Express :green_heart: MongoDB](https://github.com/LintangWisesa/React_RNative_Express_MongoDB)\n- [React :heart: React Native :yellow_heart: Express :green_heart: MySQL](https://github.com/LintangWisesa/React_RNative_Express_MySQL)\n- [React :heart: React Native :yellow_heart: Express :green_heart: PostgreSQL](https://github.com/LintangWisesa/React_RNative_Express_PostgreSQL)\n\n#\n\n#### Lintang Wisesa :love_letter: _lintangwisesa@ymail.com_\n\n[Facebook](https://www.facebook.com/lintangbagus) |\n[Twitter](https://twitter.com/Lintang_Wisesa) |\n[Google+](https://plus.google.com/u/0/+LintangWisesa1) |\n[Youtube](https://www.youtube.com/user/lintangbagus) | \n:octocat: [GitHub](https://github.com/LintangWisesa) |\n[Hackster](https://www.hackster.io/lintangwisesa)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flintangwisesa%2Freact_rnative_express_mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flintangwisesa%2Freact_rnative_express_mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flintangwisesa%2Freact_rnative_express_mongodb/lists"}