Skip to content

Commit 4e8ad9f

Browse files
committed
uploading new README.md
1 parent 859a6dc commit 4e8ad9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+432
-258
lines changed

.DS_Store

6 KB
Binary file not shown.

.editorconfig

100644100755
File mode changed.

.ember-cli

100644100755
File mode changed.

.eslintignore

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/blueprints/*/files/**/*.js
1+
/blueprints/*/files/**/*.js

.eslintrc.js

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

.travis.yml

100644100755
File mode changed.

.watchmanconfig

100644100755
File mode changed.

README.md

100644100755
+178-25
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,210 @@
1-
# Task Manager
1+
# taskyak
22
This application is designed to use emberjs and a firebase database to create and manage various tasks with a pinterest like layout
3-
## Prerequisites
3+
## Dependencies
4+
![npm](https://img.shields.io/npm/v/npm.svg)
5+
![node (scoped with tag, custom registry)](https://img.shields.io/node/v/@stdlib/stdlib/latest.svg?registry_uri=https%3A%2F%2Fregistry.npmjs.com)
6+
![Bower](https://img.shields.io/bower/v/bootstrap.svg)
7+
48

9+
## Prerequisites
510
You will need the following things properly installed on your computer.
611

712
* [Git](https://git-scm.com/)
813
* [Node.js](https://nodejs.org/) (with npm)
914
* [Ember CLI](https://ember-cli.com/)
1015
* [Google Chrome](https://google.com/chrome/)
1116

12-
## Installation
17+
## Installation..
18+
* `git clone https://github.com/milesjmccloskey/Project-2-CPSC-473.git`
19+
* `cd Project-2-CPSC-473`
1320

14-
* `git clone <repository-url>` this repository
15-
* `cd p1`
16-
* `npm install`
21+
## Running EmberFire and Torii..
22+
* `ember install emberfire`
23+
* `ember install torii`
24+
25+
Change the firebase environment variables within the app/config whereby the user
26+
### Make sure these you have these dependencies
27+
* `ember install ember-cli-bootstrap-4`
28+
* `ember install ember-cli-babel@6.6`
29+
* `npm i ember-easy-dropdown`
1730

18-
## Running / Development
31+
### If you have the wrong dependency installed...
32+
you can run the command..
33+
* `ember uninstall"dependency@version"`
34+
then run...
35+
* `ember install"dependency@version"`
1936

37+
### Once the correct dependecies are installed, run...
38+
* `npm install`
39+
40+
## Setting up Firebase....
41+
#### 1) Go to: https://console.firebase.google.com/
42+
#### 2) Add a new project
43+
#### 3) Pick a project name
44+
#### 4) Create it the new Firebase instantiation by clicking 'Create'
45+
#### 5) Click on the new Firebase project
46+
#### 6) On the left.. Go to 'Authentication'
47+
#### 7) Cick "SIGN-IN-METHOD"
48+
#### 8) Set the Email/Password to Enabled
49+
#### 9) Enable users to sign up using their email addresses
50+
#### 10) Enable passwordless authentication with email link
51+
#### Then on the left select Database make sure the rules are set to...
52+
```
53+
{
54+
"rules": {
55+
".read": true,
56+
".write": true
57+
}
58+
}
59+
```
60+
### Configure the Database to start up in Test Mode, then once
61+
### the first data has been populated it shouldn't need rule changes
62+
63+
## Running / Development..
2064
* `ember serve`
2165
* Visit your app at [http://localhost:4200](http://localhost:4200).
2266
* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
2367

24-
## Running EmberFire and Torii
25-
* ember install emberfire
26-
* ember install torii
27-
28-
### Code Generators
29-
30-
Make use of the many generators for code, try `ember help generate` for more details
31-
32-
### Running Tests
33-
68+
## Running Tests..
3469
* `ember test`
3570
* `ember test --server`
3671

37-
### Linting
38-
72+
## Linting..
3973
* `npm run lint:js`
4074
* `npm run lint:js -- --fix`
4175

42-
### Building
43-
76+
## Building..
4477
* `ember build` (development)
4578
* `ember build --environment production` (production)
4679

47-
### Deploying
48-
49-
Specify what it takes to deploy your app.
80+
## Code Generators..
81+
Make use of the many generators for code, try `ember help generate/g` for more details
82+
#### Routes:
83+
```
84+
* `ember g route about`
85+
* `ember g rout application`
86+
* `ember g route index`
87+
* `ember g route messages`
88+
* `ember g route navbar`
89+
* `ember g route register`
90+
* `ember g route signin`
91+
* `ember g route task-listing`
92+
* `ember g route taskforminput`
93+
* `ember g route welcome`
94+
```
95+
#### Models:
96+
```
97+
* `ember g model user`
98+
* `ember g model tasktaskforminput`
99+
* `ember g model messageinput`
100+
```
101+
#### Controllers:
102+
```
103+
* `ember g controller application`
104+
* `ember g controller index`
105+
* `ember g controller messages`
106+
* `ember g controller navbar`
107+
* `ember g controller register`
108+
* `ember g controller signin`
109+
* `ember g controller taskforminput`
110+
```
111+
112+
## Additional Git Commands
113+
### How to add access and add from a remote branch
114+
### Creates a new branch miles and switches to it...
115+
* `git checkout -b <branch name>`
116+
### Verify you're on the new branch
117+
* `git status`
118+
### Add any changes from the new remote branch to the master
119+
* `git add .`
120+
* `git commit -m "initiating changes from remote branch to master`
121+
* `git remote add origin git@github.com:Razat94/Project-2-CPSC-473.git`
122+
* `git push -u origin <remotebranchName>`
123+
### Switch back to the master
124+
* `git checkout master`
125+
* `git merge <remotebranchName>`
126+
* `git push -u origin master`
127+
128+
### Clone the new repo
129+
* `git clone https://github.com/milesjmccloskey/Project-2-CPSC-473.git`
130+
* `cd Project-2-CPSC-473`
131+
* `npm install`
132+
* `ember install emberfire && install torii`
133+
* `ember test`
134+
### If it doesn't have any compilation errors then..
135+
* `ember serve`
136+
### Also, if you want to clone from the remote branch you can
137+
* `git clone -b <branch_name> git@github.com:Razat94/Project-2-CPSC-473.git`
138+
139+
140+
```
141+
* `module.exports = function(environment) {`
142+
* ` let ENV = {`
143+
* ` modulePrefix: 'p1',`
144+
* ` environment,`
145+
* ` rootURL: '/',`
146+
* ` locationType: 'auto',`
147+
* ` firebase: {`
148+
* ` apiKey: "AIzaSyDVT8TDcFDZaf8oSWYVI8hbXXQeZbdup3I",`
149+
* ` authDomain: "taskmanager-8f72.firebaseapp.com",`
150+
* ` databaseURL: "https://taskmanager-8****.firebaseio.com",`
151+
* ` projectId: "taskmanager-8****",`
152+
* ` storageBucket: "taskmanager-8**02.appspot.com",`
153+
* ` messagingSenderId: "***********"`
154+
* ` },`
155+
```
156+
### If you accidently pushed the wrong repo, and need to revert to an old repository
157+
### state or in other words to the previous commit...
158+
159+
### Enter the command...
160+
* `git log`
161+
### This will display a log of all the recent git commits with their
162+
### corresponding commit SHA-1 ID's, which git uses as its version control
163+
Choose the corresponding commit, and instead of using..
164+
* `git fetch`
165+
We can simply click on commits on the repository bar above the branch names..
166+
Then click the commit SHA-1 ID, and then click browse files...
167+
Then simply download a zip, or..
168+
* `git clone` from the correct corresponding commit repo
169+
170+
## Deploying the taskyak ember/firebase application
171+
``` 1) Create a heroku account
172+
2) Create a new repo, and import the code from the github repository
173+
3) Publish the heroku project instantiation...
174+
4) Go to: https://<projectName>.herokuapp.com/
175+
```
176+
177+
# LIVE DEMO:[taskyak](https://taskyak.herokuapp.com/)
50178

51179
## Further Reading / Useful Links
52-
53180
* [ember.js](https://emberjs.com/)
54181
* [ember-cli](https://ember-cli.com/)
55182
* Development Browser Extensions
56183
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
57184
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
185+
186+
187+
# Created By:
188+
## [Miles McCloskey](https://github.com/milesjmccloskey)
189+
## [Raza Tahir]( https://github.com/razat94)
190+
## [Chase Moyniham]( https://github.com/chasemoy)
191+
## [David Moreno]( https://github.com/dmoreno757)
192+
193+
# Contribute to Taskyak!
194+
## Any donations make a huge difference, and are greatly appreciated!
195+
196+
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)]( https://PayPal.Me/MilesMcCloskey/2)
197+
198+
[![Donate](https://img.shields.io/badge/Donate-BTC-yellow.svg)]( https://commerce.coinbase.com/checkout/c163eaa2-70c2-479c-ae13-89f60d7fa0ff)
199+
200+
[![Donate](https://img.shields.io/badge/Donate-ETH-blue.svg)]( https://commerce.coinbase.com/checkout/77bb2799-d3f8-4b75-a579-9f1c4ddf974a)
201+
202+
203+
204+
205+
206+
207+
208+
209+
210+

app/.DS_Store

6 KB
Binary file not shown.

app/README.md

100644100755
File mode changed.

app/adapters/application.js

100644100755
File mode changed.

app/app.js

100644100755
File mode changed.

app/components/.gitkeep

100644100755
File mode changed.

app/components/task-listing.js

100644100755
File mode changed.

app/components/task-object.js

100644100755
File mode changed.

app/controllers/.eslintrc.js

100644100755
File mode changed.

app/controllers/.gitkeep

100644100755
File mode changed.

app/controllers/application.js

100644100755
File mode changed.

app/controllers/index.js

100644100755
File mode changed.

app/controllers/messages.js

100644100755
+39-35
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
1-
import Controller from '@ember/controller';
2-
3-
export default Controller.extend({
4-
firebaseApp: Ember.inject.service(),
5-
actions: {
6-
publishMessage() {
7-
const auth = this.get('firebaseApp').auth();
8-
const userID = auth.currentUser.uid;
9-
var newMessage = this.store.createRecord('messageinput', {
10-
name: this.get('name'),
11-
body: this.get('body'),
12-
userID: userID,
13-
});
14-
newMessage.save();
15-
this.setProperties({
16-
name: '',
17-
body: ''
18-
});
19-
}
20-
// deleteMessage: function(messageinput) {
21-
// var message = this.store.find('messageinput', messageinput, {
22-
// //this gets the info from the form fields with this value
23-
// name: this.get('name'),
24-
// body: this.get('body')
25-
// });
26-
//this deletes the data to store and firebase
27-
//message.destroyRecord();
28-
// destroyMessage(messageinput){
29-
// messageinput.destroyRecord();
30-
// messageinput.deleteRecord();
31-
// messageinput.save();
32-
// }
33-
}
34-
});
35-
1+
import Controller from '@ember/controller';
2+
3+
export default Controller.extend({
4+
firebaseApp: Ember.inject.service(),
5+
actions: {
6+
publishMessage() {
7+
const auth = this.get('firebaseApp').auth();
8+
const userID = auth.currentUser.uid;
9+
var newMessage = this.store.createRecord('messageinput', {
10+
name: this.get('name'),
11+
body: this.get('body'),
12+
userID: userID,
13+
});
14+
newMessage.save();
15+
this.setProperties({
16+
name: '',
17+
body: ''
18+
});
19+
},
20+
// deleteMessage: function(messageinput) {
21+
// var message = this.store.find('messageinput', messageinput, {
22+
// //this gets the info from the form fields with this value
23+
// name: this.get('name'),
24+
// body: this.get('body')
25+
// });
26+
//this deletes the data to store and firebase
27+
//message.destroyRecord();
28+
// destroyMessage(messageinput){
29+
// messageinput.destroyRecord();
30+
// messageinput.deleteRecord();
31+
// messageinput.save();
32+
// }
33+
deleteMessage(messageinput){
34+
messageinput.deleteRecord();
35+
messageinput.destroyRecord();
36+
messageinput.save();
37+
}
38+
}
39+
});

app/controllers/navbar.js

100644100755
File mode changed.

app/controllers/register.js

100644100755
File mode changed.

app/controllers/signin.js

100644100755
File mode changed.

app/controllers/taskforminput.js

100644100755
File mode changed.

app/helpers/.gitkeep

100644100755
File mode changed.

app/index.html

100644100755
File mode changed.

app/models/.gitkeep

100644100755
File mode changed.

app/models/messageinput.js

100644100755
+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import DS from 'ember-data';
2-
3-
export default DS.Model.extend({
4-
name: DS.attr('string'),
5-
body: DS.attr('string'),
6-
userID: DS.attr()
7-
});
8-
1+
import DS from 'ember-data';
2+
3+
export default DS.Model.extend({
4+
name: DS.attr('string'),
5+
body: DS.attr('string'),
6+
userID: DS.attr()
7+
});
8+

app/models/taskforminput.js

100644100755
File mode changed.

app/models/user.js

100644100755
File mode changed.

app/resolver.js

100644100755
File mode changed.

app/router.js

100644100755
+21-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import EmberRouter from '@ember/routing/router';
2-
import config from './config/environment';
3-
4-
const Router = EmberRouter.extend({
5-
location: config.locationType,
6-
rootURL: config.rootURL
7-
});
8-
9-
Router.map(function() {
10-
//this.route('index');
11-
this.route('signin');
12-
this.route('register');
13-
this.route('navbar');
14-
this.authenticatedRoute('welcome');
15-
this.route('taskforminput');
16-
this.route('about');
17-
this.route('task-listing');
18-
this.route('messages');
19-
});
20-
21-
export default Router;
1+
import EmberRouter from '@ember/routing/router';
2+
import config from './config/environment';
3+
4+
const Router = EmberRouter.extend({
5+
location: config.locationType,
6+
rootURL: config.rootURL
7+
});
8+
9+
Router.map(function() {
10+
//this.route('index');
11+
this.route('signin');
12+
this.route('register');
13+
this.route('navbar');
14+
this.authenticatedRoute('welcome');
15+
this.route('taskforminput');
16+
this.route('about');
17+
this.route('task-listing');
18+
this.route('messages');
19+
});
20+
21+
export default Router;

app/routes/.eslintrc.js

100644100755
File mode changed.

app/routes/.gitkeep

100644100755
File mode changed.

app/routes/about.js

100644100755
File mode changed.

app/routes/application.js

100644100755
File mode changed.

app/routes/index.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)