Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpanjwani committed Nov 19, 2019
0 parents commit f4c2a0b
Show file tree
Hide file tree
Showing 295 changed files with 45,699 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]

# Change these settings to your own preference
indent_style = space
indent_size = 4

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
78 changes: 78 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
module.exports = {
root: true,
extends: '@react-native-community',
parser: 'babel-eslint',
plugins: ['flowtype', 'prettier'],
rules: {
'react/jsx-filename-extension': 'off',
'no-use-before-define': 'off',
'import/prefer-default-export': 'off',
'function-paren-newline': 'off',
'no-trailing-spaces': 'off',
'eol-last': 'off',
'react/jsx-curly-brace-presence': 'off',
camelcase: 'off',
'no-underscore-dangle': 'off',
'object-curly-newline': 'off',
'arrow-parens': 'off',
'global-require': 'off',
'no-else-return': 'off',
'no-unused-expressions': 'off',
// Indent with 4 spaces
"indent": ["error", 4],
// Indent JSX with 4 spaces
"react/jsx-indent": ["error", 4],
// Indent props with 4 spaces
"react/jsx-indent-props": ["error", 4],
'react/prefer-stateless-function': 'off',
'no-confusing-arrow': 'off',
'no-unused-expressions': 'off',
'react/jsx-no-bind': 'off',
'consistent-return': 'off',
"react/sort-comp": ["on", {
order: [
'static-methods',
'lifecycle',
'everything-else',
'render'
],
groups: {
lifecycle: [
'displayName',
'propTypes',
'contextTypes',
'childContextTypes',
'mixins',
'statics',
'defaultProps',
'constructor',
'getDefaultProps',
'state',
'getInitialState',
'getChildContext',
'getDerivedStateFromProps',
'componentWillMount',
'UNSAFE_componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'UNSAFE_componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'UNSAFE_componentWillUpdate',
'getSnapshotBeforeUpdate',
'componentDidUpdate',
'componentDidCatch',
'componentWillUnmount'
]
}
}]
},
globals: {
fetch: true,
it: true,
alert: true,
btoa: true,
document: true,
window: true,
},
};
4 changes: 4 additions & 0 deletions .expo-shared/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"f9155ac790fd02fadcdeca367b02581c04a353aa6d5aa84409a59f6804c87acd": true,
"89ed26367cdb9b771858e026f2eb95bfdb90e5ae943e716575327ec325f39c44": true
}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules/**/*
.expo/*
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
web-report/
10 changes: 10 additions & 0 deletions .prettierlc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
bracketSpacing: true,
jsxBracketSameLine: false,
singleQuote: true,
trailingComma: 'all',
printWidth: 100,
parser: "flow",
arrowParens: "always",
tabWidth: 4,
};
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
10 changes: 10 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Main Root component imported for export crater app.
*
* @version 1.0.0
* @author [crater](https://craterapp.com)
*/

import App from './src/index'

export default App
47 changes: 47 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Copyright (c) 2019 by Mohit Panjwani
Crater Invoice * https://www.craterapp.com
"Easy Invoicing"

All Rights Reserved
ATTRIBUTION ASSURANCE LICENSE (adapted from the original BSD license)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the conditions below are met.
These conditions require a modest attribution to CraterApp.com (the
"Author"), who hopes that its promotional value may help justify the
thousands of dollars in otherwise billable time invested in writing
this and other freely available, open-source software.

1. Redistributions of source code, in whole or part and with or without
modification (the "Code"), must prominently display this GPG-signed
text in verifiable form.
2. Redistributions of the Code in binary form must be accompanied by
this GPG-signed text in any documentation and, each time the resulting
executable program or a program dependent thereon is launched, a
prominent display (e.g., splash screen or banner text) of the Author's
attribution information, which includes:
(a) Name ("Mohit Panjwani"),
(b) Professional identification ("Crater Invoice"), and
(c) URL ("https://www.craterapp.com").
3. Neither the name nor any trademark of the Author may be used to
endorse or promote products derived from this software without specific
prior written permission.
4. Users are entirely responsible, to the exclusion of the Author and
any other persons, for compliance with (1) regulations set by owners or
administrators of employed equipment, (2) licensing terms of any other
software, and (3) local regulations regarding use, including those
regarding import, export, and use of encryption software.

THIS FREE SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE AUTHOR OR ANY CONTRIBUTOR BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
EFFECTS OF UNAUTHORIZED OR MALICIOUS NETWORK ACCESS;
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<p align="center"><img height="150px" src="https://res.cloudinary.com/bytefury/image/upload/v1574149856/Crater/craterframe.png"></p>

## Introduction

Crater is an open-source web & mobile app that helps you track expenses, payments & create professional invoices & estimates.

This repository contains the source code for the mobile app clients for [Crater](https://craterapp.com).

Its built with Expo (React Native).

# Table of Contents

1. [Installation](#installation)
2. [Web Version Link](#web)
5. [Mobile App Links](#mobile-app-links)
6. [License](#license)

## Installation
Below are the steps for starting up the crater app locally for development. If you aren't looking to customise or contribute the mobile apps then you can ignore the steps below and use the Crater [IOS & Android Apps](#mobile-app-links) directly.

- Clone this repository
- Install Expo CLI : `npm install -g expo-cli`
- Change your current working directly in terminal to the cloned folder: `cd crater`
- run command: `npm start`

## Web
- [Repository Link](https://github.com/bytefuryco/crater)
- [Download Link](https://craterapp.com/downloads)

## Mobile App Links
- [Android](https://play.google.com/store/apps/details?id=com.craterapp.app)
- IOS - Coming Soon

## License
Crater is released under the Attribution Assurance License.
See [LICENSE](LICENSE) for details.
36 changes: 36 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"expo": {
"name": "Crater",
"slug": "crater",
"privacy": "public",
"sdkVersion": "34.0.0",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.0.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "cover",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.craterapp.app"
},
"android": {
"package": "com.craterapp.app",
"versionCode": 4
},
"description": ""
}
}
Binary file added assets/crater-app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/splash2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
15 changes: 15 additions & 0 deletions config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

// alert(process.env.ENDPOINT_API);

module.exports = {
ENDPOINT_API: 'http://crater-web.test/api/',
ENDPOINT_URL: 'http://crater-web.test/',
// API_URL: process.env.ENDPOINT_API || ENDPOINT_API,
APP_VERSION: '1.0.0',

/*
* Sign in with google
GOOGLE_ANDROID_CLIENT_ID : '1068445967958-5od7lgi1lgfi3kfm12h076cp38r213j8.apps.googleusercontent.com' ,
GOOGLE_IOS_CLIENT_ID :
'1068445967958-j0cidm4m5073nqo3p12mqprum2vubuk3.apps.googleusercontent.com' */
};
Loading

0 comments on commit f4c2a0b

Please sign in to comment.