Giter Site home page Giter Site logo

carhub-employee's Introduction

Project Title

Car hub mobile application

Getting Started

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.

Prerequisites

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

Installing

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

Static compilation

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.

Deployment

Create your own branch before coding Deploy to your branch, and create merge request and assign to @truongpham17

Running

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!

Authors

  • Truong Pham - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details

carhub-employee's People

Contributors

cuongtp avatar dattt1807 avatar truongpham17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.