Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
acatarinaoaraujo authored Jan 29, 2024
0 parents commit 9a7ca21
Show file tree
Hide file tree
Showing 87 changed files with 15,505 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/task-description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Task Description
about: Describe a task to be accomplished
title: ''
labels: ''
assignees: ''

---

Please do work for this task in a branch named issue-XXX.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ci-meteor-application-template-react

on:
push:
branches:
- main

defaults:
run:
working-directory: ./app

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-v5-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}

- uses: actions/setup-node@v3
with:
node-version: '16.x'

- run: npm ci --legacy-peer-deps

- run: curl https://install.meteor.com/ | sh

- name: Run Meteor commands
shell: bash -l {0}
run: |
meteor npm install
meteor npm run lint
# meteor npm run testcafe-ci
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.iml
.idea
.DS_Store
node_modules
settings.production.json
app/.deploy/mup.js
app/.deploy/settings.json
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019

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.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[![ci-meteor-application-template-react](https://github.com/ics-software-engineering/meteor-application-template-react/actions/workflows/ci.yml/badge.svg)](https://github.com/ics-software-engineering/meteor-application-template-react/actions/workflows/ci.yml)

For details, please see http://ics-software-engineering.github.io/meteor-application-template-react/
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: meteor-application-template-react
description: A template for quickly starting Meteor application development
google_analytics:
show_downloads: true
theme: jekyll-theme-cayman

gems:
- jekyll-mentions
5 changes: 5 additions & 0 deletions app/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-react"
]
}
2 changes: 2 additions & 0 deletions app/.deploy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mup.js
settings.json
26 changes: 26 additions & 0 deletions app/.deploy/mup.sample.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
servers: {
one: {
host: '111.222.333.444',
username: 'root',
password: 'changeme'
}
},
app: {
// if you edit the app 'name' field, be sure to run 'mup stop' if the app is already running.
// otherwise you will have two apps deployed at once, with unpredictable results.
name: 'meteor-react-bootstrap-template',
path: '../',
servers: { one: {}, },
buildOptions: { serverOnly: true },
env: {
ROOT_URL: 'http://111.222.333.444',
MONGO_URL: 'mongodb://mongodb/meteor',
MONGO_OPLOG_URL: 'mongodb://mongodb/local',
},
docker: { image: 'zodern/meteor:latest' },
enableUploadProgressBar: true
},
mongo: { version: '5.0', servers: { one: {} }
},
};
18 changes: 18 additions & 0 deletions app/.deploy/settings.sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"defaultAccounts": [
{ "email": "admin@foo.com", "password": "changeme", "role": "admin" },
{ "email": "john@foo.com", "password": "changeme" }
],

"defaultData": [
{ "name": "Basket", "quantity": 3, "owner": "john@foo.com", "condition": "excellent" },
{ "name": "Bicycle", "quantity": 2, "owner": "john@foo.com", "condition": "poor" },
{ "name": "Banana", "quantity": 2, "owner": "admin@foo.com", "condition": "good" },
{ "name": "Boogie Board", "quantity": 2, "owner": "admin@foo.com", "condition": "excellent" }
],

"monti": {
"appId": "changeme",
"appSecret": "changeme"
}
}
55 changes: 55 additions & 0 deletions app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'plugin:react/recommended',
'plugin:meteor/recommended',
'airbnb',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'jsx',
'meteor',
'react',
],
rules: {
'arrow-parens': 'off',
camelcase: 'off',
'class-methods-use-this': 'off',
'func-names': 'off',
'import/no-absolute-path': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/imports-first': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
indent: ['error', 2],
'linebreak-style': 'off',
'max-len': ['error', 250],
'meteor/eventmap-params': [2, { eventParamName: 'event', templateInstanceParamName: 'instance' }],
'meteor/template-names': 'off',
'no-confusing-arrow': ['error', { allowParens: true }],
'no-plusplus': 'off',
'no-underscore-dangle': 'off',
'object-curly-newline': 'off',
'object-property-newline': 'off',
'object-shorthand': 'off',
'operator-linebreak': 'off',
'padded-blocks': 'off',
'prefer-arrow-callback': 'off',
'prefer-destructuring': 'off',
'prefer-promise-reject-errors': 'off',
'react/function-component-definition': [2, { namedComponents: 'arrow-function' }],
'react/jsx-one-expression-per-line': 'off',
'react/no-array-index-key': 'off',
},
};
4 changes: 4 additions & 0 deletions app/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary
19 changes: 19 additions & 0 deletions app/.meteor/.finished-upgraders
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file contains information which helps Meteor properly upgrade your
# app when you run 'meteor update'. You should check it into version control
# with your project.

notices-for-0.9.0
notices-for-0.9.1
0.9.4-platform-file
notices-for-facebook-graph-api-2
1.2.0-standard-minifiers-package
1.2.0-meteor-platform-split
1.2.0-cordova-changes
1.2.0-breaking-changes
1.3.0-split-minifiers-package
1.4.0-remove-old-dev-bundle-link
1.4.1-add-shell-server-package
1.4.3-split-account-service-packages
1.5-add-dynamic-import-package
1.7-split-underscore-from-meteor-base
1.8.3-split-jquery-from-blaze
1 change: 1 addition & 0 deletions app/.meteor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local
7 changes: 7 additions & 0 deletions app/.meteor/.id
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file contains a token that is unique to your project.
# Check it into your repository along with the rest of this directory.
# It can be used for purposes such as:
# - ensuring you don't accidentally deploy one app on top of another
# - providing package authors with aggregated statistics

1b0i1u976u6dkek239x
44 changes: 44 additions & 0 deletions app/.meteor/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

# Core packages for Meteor/React/Semantic UI
meteor-base@1.5.1 # Packages every Meteor app needs to have
mobile-experience@1.1.1 # Packages for a great mobile UX
mongo@1.16.8 # The database Meteor supports right now
reactive-var@1.0.12 # Reactive variable for tracker

standard-minifier-css@1.9.2 # CSS minifier run for production mode
standard-minifier-js@2.8.1
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers
ecmascript@0.16.8 # Enable ECMAScript2015+ syntax in app code
# typescript@3.7.6 # Enable TypeScript syntax in .ts and .tsx modules
shell-server@0.5.0 # Server-side component of the `meteor shell` command

# autopublish@1.0.7 # Publish all data to the clients (for prototyping)
insecure@1.0.7 # Allow all DB writes from clients (for prototyping)
static-html@1.3.2 # Define static page content in .html files
react-meteor-data # React higher-order component for reactively tracking Meteor data

# reactive-dict@1.3.0 # Object form of reactive variable.
# tracker@1.2.0 # Meteor's client-side reactive programming library

# Accounts
accounts-password@2.4.0
alanning:roles # support roles like 'admin'

# Collection support
aldeed:collection2
aldeed:schema-index # Support index: true and unique: true in schema definitions.

# Utilities
underscore@1.0.13 # http://underscorejs.org/
ejson@1.1.3 # https://docs.meteor.com/api/ejson.html

# Application Performance Monitoring
montiapm:agent # see http://montiapm.com
zodern:hide-production-sourcemaps
hot-module-replacement@0.5.3
dev-error-overlay@0.1.2
2 changes: 2 additions & 0 deletions app/.meteor/platforms
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server
browser
1 change: 1 addition & 0 deletions app/.meteor/release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
METEOR@2.14
91 changes: 91 additions & 0 deletions app/.meteor/versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
accounts-base@2.2.9
accounts-password@2.4.0
alanning:roles@3.6.1
aldeed:collection2@3.5.0
aldeed:schema-index@3.1.0
allow-deny@1.1.1
autoupdate@1.8.0
babel-compiler@7.10.5
babel-runtime@1.5.1
base64@1.0.12
binary-heap@1.0.11
blaze-tools@1.1.4
boilerplate-generator@1.7.2
caching-compiler@1.2.2
caching-html-compiler@1.2.2
callback-hook@1.5.1
check@1.3.2
ddp@1.4.1
ddp-client@2.6.1
ddp-common@1.4.0
ddp-rate-limiter@1.2.1
ddp-server@2.7.0
dev-error-overlay@0.1.2
diff-sequence@1.1.2
dynamic-import@0.7.3
ecmascript@0.16.8
ecmascript-runtime@0.8.1
ecmascript-runtime-client@0.12.1
ecmascript-runtime-server@0.11.0
ejson@1.1.3
email@2.2.5
es5-shim@4.8.0
fetch@0.1.4
geojson-utils@1.0.11
hot-code-push@1.0.4
hot-module-replacement@0.5.3
html-tools@1.1.4
htmljs@1.2.0
id-map@1.1.1
insecure@1.0.7
inter-process-messaging@0.1.1
launch-screen@2.0.0
localstorage@1.2.0
logging@1.3.3
meteor@1.11.4
meteor-base@1.5.1
minifier-css@1.6.4
minifier-js@2.7.5
minimongo@1.9.3
mobile-experience@1.1.1
mobile-status-bar@1.1.0
modern-browsers@0.1.10
modules@0.20.0
modules-runtime@0.13.1
modules-runtime-hot@0.14.2
mongo@1.16.8
mongo-decimal@0.1.3
mongo-dev-server@1.1.0
mongo-id@1.0.8
montiapm:agent@2.47.4
montiapm:meteorx@2.3.1
npm-mongo@4.17.2
ordered-dict@1.1.0
promise@0.12.2
raix:eventemitter@1.0.0
random@1.2.1
rate-limit@1.1.1
react-fast-refresh@0.2.8
react-meteor-data@2.7.2
reactive-var@1.0.12
reload@1.3.1
retry@1.1.0
routepolicy@1.1.1
sha@1.0.9
shell-server@0.5.0
socket-stream-client@0.5.2
spacebars-compiler@1.3.2
standard-minifier-css@1.9.2
standard-minifier-js@2.8.1
static-html@1.3.2
templating-tools@1.2.3
tmeasday:check-npm-versions@1.0.2
tracker@1.3.3
typescript@4.9.5
underscore@1.0.13
url@1.3.2
webapp@1.13.6
webapp-hashing@1.1.1
zodern:hide-production-sourcemaps@1.2.0
zodern:meteor-package-versions@0.2.2
zodern:types@1.0.11
5 changes: 5 additions & 0 deletions app/.testcaferc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hostname": "localhost",
"quarantineMode": true,
"retryTestPages": true
}
Loading

0 comments on commit 9a7ca21

Please sign in to comment.