{"id":19059405,"url":"https://github.com/evertonsavio/react-native-mern-stack","last_synced_at":"2026-05-12T12:30:20.970Z","repository":{"id":144462756,"uuid":"289504779","full_name":"evertonsavio/react-native-mern-stack","owner":"evertonsavio","description":"MERN stack (MongoDB, Express, React Native, Node.js). Mobile app with authentication using node backend with express and mongoDB in the cloud.","archived":false,"fork":false,"pushed_at":"2020-09-07T20:25:46.000Z","size":2187,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T12:13:05.570Z","etag":null,"topics":[],"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/evertonsavio.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":"2020-08-22T14:34:06.000Z","updated_at":"2024-10-04T22:23:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"2269f0f2-18c9-4353-8c32-efd5c8a330e7","html_url":"https://github.com/evertonsavio/react-native-mern-stack","commit_stats":null,"previous_names":["evertonsavio/react-native-mern-stack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evertonsavio%2Freact-native-mern-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evertonsavio%2Freact-native-mern-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evertonsavio%2Freact-native-mern-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evertonsavio%2Freact-native-mern-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evertonsavio","download_url":"https://codeload.github.com/evertonsavio/react-native-mern-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240113943,"owners_count":19749829,"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":"2024-11-09T00:09:07.842Z","updated_at":"2026-05-12T12:30:20.913Z","avatar_url":"https://github.com/evertonsavio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### React Native com Express Backend\n\n```\nnpm install -g expo-cli\nexpo --version\nexpo init clientApp\nyarn add @expo/vector-icons\nyarn add react-native-floating-action\nyarn add redux react-redux\nyarn add redux-thunk redux-devtools-extension\nyarn add formik\nyarn add yup\nyarn add @react-native-community/async-storage\nyarn add jwt-decode\n```\n\n### Node Server\n\n```\nnpm init -y\nnpm install express\nnpm install nodemon --save-dev\nnpm install --save express-validator\nnpm install bcryptjs\nnpm install jsonwebtoken\nnpm install cors\n```\n\n- package.json:\n\n```\n  \"scripts\": {\n    \"start\": \"nodemon index.js\"\n\nnpm run start\n```\n\n```\nnpm install dotenv\n```\n\n- criar arquivo .env -\u003e PORT=3000\n\n```\nrequire('dotenv').config();\nconst port = process.env.PORT || 3000;\n```\n\n### MongoDB\n\n- https://www.mongodb.com/ -\u003e Cloud -\u003e Atlas -\u003e Create a cluster\n- Em Database Acess -\u003e Add New Database User\n- Network Acess -\u003e Add IP Adresss -\u003e Add Current IP Adress\n- mongodb+srv://everluca:\u003cpassword\u003e@cluster0.ybkh2.azure.mongodb.net/\u003cdbname\u003e?retryWrites=true\u0026w=majority\n- Em Clusters -\u003e CONNECT -\u003e Connect your application\n- Em CLusters -\u003e CONNECT -\u003e Connect using MongoDB Compass -\u003e Download Compass\n\n### Mongoose\n\n- https://mongoosejs.com/\n- npm install moongoose\n\n### HEROKU\n\n- Instalar Heroku CLI -\u003e https://devcenter.heroku.com/articles/heroku-cli#getting-started\n- Para checar versao no terminal digite: heroku --version\n- Para login a partir do terminal: heroku login -i\n- Apos criar a Procfile e alterar a package.json com a engines\n- `heroku local web`\n- `heroku create`\n- `git push heroku master`\n- A aplicacao deve estar no root do diretorio do git, ou seja package.json deve estar no mesmo diretorio do seu arquivo .git\n\n### DEPLOY\n\n- Alterar todos os endpoints para os urls do heroku por exemplo. Entao em houseAction:\n\n```\nconst result = await fetch ('https://link-do-heroku/api/imoveis');\n```\n\n- Como estou usando expo e bem direto o deploy, abrir app.json e alterar nomes e icones conforme gosto.\n- executar e push para expo cli:  \n  ` expo publish`\n- Criar uma conta em expo.io\n\n* Depois que for publicado no expo cli, um link e providenciado, copie e coloque no browser.\n* Para buildar o app, deve criar o bundle de cada plataforma:\n\n#### Andriod:\n\n```\nexpo build: android -t app-bunddle\n\nEm appp.json e necessario configurar:\n\"android\":{\n  \"package\": \"dev.evertonsavio.houselisting\",\n  \"versionCode\": 1\n}\n```\n\n#### IOS:\n\n```\nNecessario uma Apple Developer account:\n\nexpo build: ios\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevertonsavio%2Freact-native-mern-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevertonsavio%2Freact-native-mern-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevertonsavio%2Freact-native-mern-stack/lists"}