Car hub mobile application
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
For who haven't install react-native on the local machine yet Chocolatey https://chocolatey.org/install
Follow these instruction to install react-native, android studio and other packages https://facebook.github.io/react-native/docs/getting-started
React-native-debugger https://github.com/jhen0409/react-native-debugger/releases/tag/v0.11.0-beta-1
Postman https://www.getpostman.com/downloads/
Yarn
choco install yarn
Follow these step to get a development env running
Clone the repository
git clone https://github.com/truongpham17/Carhub.git
Install packages
yarn install
For MacOS (iOS development)
cd ios
pod install
cd ..
Open file src/constants/api, add your localhost with port 5068, and comment others. Example
export const API_URL = 'http://192.168.1.105:5068/'; //truongpham
Install extensions
Prettier - Code formatter Eslint
Open VSCode settings, choose Edit in settings.json, and change the content as following:
{
"editor.fontFamily": "Operator Mono Lig",
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"eslint.autoFixOnSave": true,
"prettier.disableLanguages": [
"js",
"graphql"
],
"javascript.updateImportsOnFileMove.enabled": "never",
"editor.tabSize": 2,
"window.zoomLevel": -1,
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.parameterHints": false,
"javascript.validate.enable": false,
"workbench.colorTheme": "Atom One Dark",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"java.configuration.checkProjectSettingsExclusions": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
Open the src/constants/TestPrettierAndEslint.js, and add these following code:
const a = 12 ;;
Installing static compilation is success when the VSCode show error, and when Ctrl + S, it automaticly re-format the code.
Create your own branch before coding Deploy to your branch, and create merge request and assign to @truongpham17
Starting bundle
yarn start
For the mobile device haven't install the app, run
yarn android
Start backend services, connect to server success if the screen status is: Connect success!
- Truong Pham - Initial work
This project is licensed under the MIT License - see the LICENSE.md file for details