- Introduction
- Features
- Installation
- Usage
- Development
- Contributing
- Code Quality
- Git Etiquette
- License
- Contact
The EVAT mobile application allows users to find the nearest vehicle charging station efficiently and is designed to streamline vehicle management. This repository contains the DevOps codebase for the EVAT web application.
- User Registration
- User Login
- Add Vehicle
- View Vehicle Details
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/EVAT-web-application.git
-
Navigate to the project directory:
cd EVAT-web-application -
Install dependencies:
npm install
To start the development server, run:
npm startTo run the front end project locally, from the root project run:
cd front_end_project && npm run startTo run the back end project locally, from the root project run:
cd back_end_project && npm run startTo launch both the node server and react app, run:
npm run devallNote: npm run devall isn’t working currently. To launch the node server alone, run:
npm run serverThis can be used by API developers to test their API through POSTMAN. Development should follow the Feature branch git workflow. Important: Never commit directly to main. When pulling the latest from GitHub, you may need to run npm install if any packages were added or removed in past commits. If you are experiencing errors unrelated to the code you are writing (or before writing any), try running npm install.
We welcome contributions! Please follow these steps to contribute: Fork the repository. Create a new branch:
git checkout -b feature/your-featureCommit your changes:
git commit -m 'Add some feature'Push to the branch:
git push origin feature/your-featureCode quality is enforced by ESLint, which is configured as a custom eslint plugin shared across the entire project in eslintrc.js. Each package/app requires its own .eslintrc.js file.
- Components, component directories, component files, and stories all use PascalCase / UpperCamelCase.
- Variables and functions use camelCase.
- Single quotes for strings.
- Do not use string interpolation for CSS classes.
- Do not use CSS-in-JS, StyledComponents, or Emotion CSS.
Branches are used for isolated feature development and should always branch from the source they intend to merge into. This means that a branch created from main must always end up in main.
Using the example branches of main -> feature-1 -> feature-2…
❌ Do not merge feature-1 into main before feature-2 is merged.
❌ Do not merge feature-2 directly into main, only its parent branch.
✅ Do branch feature-2 from main since it should not depend on feature-1.
Note: If it’s entirely necessary to merge feature-1 before feature-2, ensure that no manual commits are made in feature-2 between the last commit & merge commit to main of feature-1.There are no hard constraints imposed on commit messaging. Instead, the following guidelines show a best-practice approach to producing consumable commit messaging. The preferred format for a commit message looks like this. Note that only the body is required:
# format...
"type?(scope?): body..."
# examples...
"fixed some issue"
"fix: fixed some issue"
"fix(US-123): fixed some issue"
"fix(component): fixed some issue"-
type refers to what kind of commit is being made. Some example values are:
--build// related to build processes--chore// small cleanup activities or other pedantry--ci// related to continuous integration activities--docs// documentation work--feat// feature work--fix// bugfixes or hotfixes--perf// performance tuning & optimization--refactor// code refactoring--revert// reverting previously committed changes--style// styling changes--test// changes to tests
-
scope provides context to the commit type, most commonly a MS planner ticket or some project name.
-
body refers to the bulk of the commit message, which can break up into header and footer sections delimited by newlines.
- A header is the body section on the first line of the commit message.
- A footer is entered a full newline separated from the header and may contain any length of UTF-8 content.
Here are the APIs that will be used in the EVAT Mobile application:
- User Registration API
- User Login API
- User Profile API
- Add Vehicle API
- View Vehicle Details API
- Update Vehicle API
- Delete Vehicle API
- Find Nearest Charging Station API
- Real-time Charging Station Availability API
- Google Maps API (for displaying maps and locations)
- Geolocation API (for getting the user’s current location)
- MongoDB API (for database operations)
For the license, the MIT License is a popular choice for open-source projects. MIT License
Copyright (c) 2024 Chameleon-company
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 768657f (Readme.md)
This is a new React Native project, bootstrapped using @react-native-community/cli.
Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
First, you will need to start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of your React Native project:
# using npm
npm start
# OR using Yarn
yarn startLet Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
# using npm
npm run android
# OR using Yarn
yarn android# using npm
npm run ios
# OR using Yarn
yarn iosIf everything is set up correctly, you should see your new app running in your Android Emulator or iOS Simulator shortly provided you have set up your emulator/simulator correctly.
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
Now that you have successfully run the app, let's modify it.
-
Open
App.tsxin your text editor of choice and edit some lines. -
For Android: Press the R key twice or select "Reload" from the Developer Menu (Ctrl + M (on Window and Linux) or Cmd ⌘ + M (on macOS)) to see your changes!
For iOS: Hit Cmd ⌘ + R in your iOS Simulator to reload the app and see your changes!
You've successfully run and modified your React Native App. 🥳
- If you want to add this new React Native code to an existing application, check out the Integration guide.
- If you're curious to learn more about React Native, check out the Introduction to React Native.
If you can't get this to work, see the Troubleshooting page.
To learn more about React Native, take a look at the following resources:
- React Native Website - learn more about React Native.
- Getting Started - an overview of React Native and how setup your environment.
- Learn the Basics - a guided tour of the React Native basics.
- Blog - read the latest official React Native Blog posts.
@facebook/react-native- the Open Source; GitHub repository for React Native.