Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up mobile app #19

Closed
wants to merge 8 commits into from
Closed

Setting up mobile app #19

wants to merge 8 commits into from

Conversation

beaesguerra
Copy link
Contributor

  • Set up the mobile app using react native
  • Integrated typescript
  • Include readme for set up instructions
  • Set up code coverage thresholds

Sample screenshot of the application in its' basic state:
image

@ExtraGravity
Copy link
Contributor

Holy shit 50 files for initialization lol, I'll get it reviewed tomorrow.

@beaesguerra
Copy link
Contributor Author

A lot of the files are auto generated when a react native project is initialized. Files that are probably of interest:

  • package.json
  • README.md
  • tsconfig.json

@Parasrah
Copy link
Contributor

Parasrah commented Nov 1, 2017

Not a review, but I just want to say I'm really impressed. This manages to preserve code coverage, unit tests and the babel compilation. I'm still fighting hard with all these things on the Vue template

Copy link
Contributor

@ExtraGravity ExtraGravity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing breaking, just questions. Do the android and ios folders need to be included? Are they not compiled output?

tsconfig.json Outdated
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 3 returns seem pretty useful to me, what do you think of turning them on?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this can be something configured later on when we configure linting (ie. figuring out if we should not allow code to be compiled properly if these rules are broken vs. failing lint tests when these rules are broken).

Also, this was also auto-generated after I followed Microsoft's guide for integrating typescript with react native: https://github.com/Microsoft/TypeScript-React-Native-Starter

@@ -0,0 +1,56 @@
{
"name": "trader",
"version": "0.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my experience with deployment, we need to include a bigger builder number in this version number that auto-increments. Doesn't need to be now, but it'll become important when we start passing it around.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be out of the scope of this issue so that this doesn't block the other tasks anymore. I raised an issue for auto-incrementing our versions in general: agriculture-capstone/systems#2

@@ -0,0 +1,56 @@
{
"name": "trader",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels too generally named, not a issue specific with this PR, but do you think this project needs a better name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this matters too much here because this name here is used for making an npm package but yeah we can probably find a better name for the app (might take some work to refactor this though haha)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed the app to agritrader

"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel like we need to mandate a certain amount of test coverage, what's your experiences with this field?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would help to maintain certain thresholds for test coverage (obviously not 100%) but it would be good later on (especially when it is being maintained by other people). From my experience, when a lot of refactoring needed to be done, it was very scary making changes to a project with little unit tests because you won't know when you are unintentionally breaking something. It'll just be here to help make sure the quality of our software is good :)

I think we can also integrate code coverage with jenkins if that's something of interest!

package.json Outdated
{
"name": "trader",
"version": "0.0.1",
"private": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to include

{ "license": "UNLICENSED" }

cover our ass. I think changing that will be important in the future.

@beaesguerra
Copy link
Contributor Author

Closing and creating new pull request after renaming the project

@beaesguerra beaesguerra closed this Nov 3, 2017
@beaesguerra beaesguerra deleted the setting-up-app branch November 3, 2017 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants