From e869d168cb260c0c46c4470eef1f48b436ecefc6 Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 16:45:03 +0100 Subject: [PATCH 01/10] Chat test --- src/app/components/chat/chat.component.html | 4 +- src/app/components/chat/chat.component.ts | 9 ++-- .../chatlist/chatlist.component.html | 4 +- .../components/chatlist/chatlist.component.ts | 6 +-- .../chatmanager/chatmanager.component.html | 4 +- .../chatmanager/chatmanager.component.ts | 21 +++++--- src/app/services/chat/chat.service.ts | 54 ++++++++++++++++--- 7 files changed, 76 insertions(+), 26 deletions(-) diff --git a/src/app/components/chat/chat.component.html b/src/app/components/chat/chat.component.html index 30f7be2..b29ddc6 100644 --- a/src/app/components/chat/chat.component.html +++ b/src/app/components/chat/chat.component.html @@ -10,7 +10,7 @@
- - + +
\ No newline at end of file diff --git a/src/app/components/chat/chat.component.ts b/src/app/components/chat/chat.component.ts index 92b6c2a..524dc30 100644 --- a/src/app/components/chat/chat.component.ts +++ b/src/app/components/chat/chat.component.ts @@ -16,6 +16,7 @@ export class ChatComponent implements OnInit { new Chatmessage("Hallo", "01.01.",true)] @Output() goBackEvent = new EventEmitter(); + @Output() refreshEvent = new EventEmitter() @Input() childChat: Chat; constructor(private chatService: ChatService) { } @@ -25,12 +26,12 @@ export class ChatComponent implements OnInit { goBack() { this.goBackEvent.emit(true) - this.chatService.getAllChats() } - sendMessage(pContent: string) { - this.chatService.sendMessage(this.childChat.id, pContent) - this.chatService.getMessages(this.childChat.id) + sendMessage(pElement) { + this.chatService.sendMessage(this.childChat.id, pElement.value) + this.refreshEvent.emit(true) + pElement.value = "" } } diff --git a/src/app/components/chatlist/chatlist.component.html b/src/app/components/chatlist/chatlist.component.html index 8186327..be19e38 100644 --- a/src/app/components/chatlist/chatlist.component.html +++ b/src/app/components/chatlist/chatlist.component.html @@ -4,10 +4,10 @@
-
Pic
-
{{chat.id}}
+
{{chat.memberName}}
diff --git a/src/app/components/chatlist/chatlist.component.ts b/src/app/components/chatlist/chatlist.component.ts index 998c1a6..341c809 100644 --- a/src/app/components/chatlist/chatlist.component.ts +++ b/src/app/components/chatlist/chatlist.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, Output, EventEmitter } from '@angular/core'; +import { Component, OnInit, Output, EventEmitter, Input } from '@angular/core'; import { Chatinfo } from 'src/app/models/chatinfo'; import { Chat } from 'src/app/models/chat'; import { ChatService } from 'src/app/services/chat/chat.service'; @@ -10,15 +10,15 @@ import { ChatService } from 'src/app/services/chat/chat.service'; }) export class ChatlistComponent implements OnInit { + @Input() childChats: Array @Output() showChatEvent = new EventEmitter(); @Output() showCreateChatEvent = new EventEmitter(); selectedChat: Chat; - chats: Array constructor(private chatService: ChatService) { } ngOnInit() { - this.chats = this.chatService.chats + } showNewChat() { diff --git a/src/app/components/chatmanager/chatmanager.component.html b/src/app/components/chatmanager/chatmanager.component.html index 039d4a1..2be65b3 100644 --- a/src/app/components/chatmanager/chatmanager.component.html +++ b/src/app/components/chatmanager/chatmanager.component.html @@ -1,8 +1,8 @@
- +
- +
diff --git a/src/app/components/chatmanager/chatmanager.component.ts b/src/app/components/chatmanager/chatmanager.component.ts index c92aeee..4d7ebe3 100644 --- a/src/app/components/chatmanager/chatmanager.component.ts +++ b/src/app/components/chatmanager/chatmanager.component.ts @@ -15,23 +15,25 @@ export class ChatmanagerComponent implements OnInit { showChatlist: boolean = true showChat: boolean = false showCreateNewChat: boolean = false - parentSelectedChat: Chat - chatIds: number[] = [] + parentSelectedChat: Chat + parentChats: Array constructor(private data: DatasharingService, private chatService: ChatService) { } ngOnInit() { - this.data.currentChatIDs.subscribe(chatIDs => { - this.chatIds = chatIDs - }) - this.chatService.getChatsByID(this.chatIds) + /*this.data.currentChatIDs.subscribe(chatIDs => { + this.parentChatIds = chatIDs + })*/ + this.refresh() } goBackToChatlist($event) { this.showChatlist = $event this.showChat = false this.showCreateNewChat = false + + this.refresh() } showSpecialChat($event) { @@ -47,4 +49,11 @@ export class ChatmanagerComponent implements OnInit { this.showCreateNewChat = $event } + refresh() { + this.chatService.getAllChatsRaw() + .subscribe(response => { + this.parentChats = this.chatService.renderAllChats(response.json()) + }) + } + } diff --git a/src/app/services/chat/chat.service.ts b/src/app/services/chat/chat.service.ts index dded0b4..01837be 100644 --- a/src/app/services/chat/chat.service.ts +++ b/src/app/services/chat/chat.service.ts @@ -29,11 +29,21 @@ export class ChatService { this.http.post(url, this.getBodyForGetAllChats()) .subscribe(response => { - this.chats = this.updateAllChats(response.json()) + this.chats = this.renderAllChats(response.json()) }); return this.chats } + public getAllChatsRaw(): any { + console.log("Getting all chats ..") + let url = 'https://greenvironment.net/graphql' + + let headers = new Headers() + headers.set('Content-Type', 'application/json') + + return this.http.post(url, this.getBodyForGetAllChats()) + } + public getChatsByID(pChatIDs: number[]): Array { this.chats = [] console.log("Getting chats by ID..") @@ -52,6 +62,23 @@ export class ChatService { return this.chats } + public getChatsByIDRaw(pChatIDs: number[]): any { + console.log("Getting chats by ID..") + + for(let chatId of pChatIDs) { + let url = 'https://greenvironment.net/graphql' + + let headers = new Headers() + headers.set('Content-Type', 'application/json') + + this.http.post(url, this.getBodyForGetChatsByID(chatId)) + .subscribe(response => { + this.updateChat(response.json()) + }) + } + return this.chats + } + public createNewChat(pUserID: number) { let url = 'https://greenvironment.net/graphql' @@ -108,12 +135,21 @@ export class ChatService { this.http.post(url, this.getBodyForGetMessagesInChat(pChatID)).subscribe(response => { console.log("Downloading messages ...") - messages = this.updateMessages(response.json()) + messages = this.renderMessages(response.json()) }) return messages } - updateMessages(pResponse: any): Array { + public getMessagesRaw(pChatID): any { + let url = 'https://greenvironment.net/graphql' + + let headers = new Headers() + headers.set('Content-Type', 'application/json') + + return this.http.post(url, this.getBodyForGetMessagesInChat(pChatID)) + } + + public renderMessages(pResponse: any): Array { let messages = new Array() for(let message of pResponse.data.getChat.messages) { if(message.author.id == this.ownID) { @@ -125,7 +161,7 @@ export class ChatService { return messages } - updateAllChats(pResponse: any): Array { + public renderAllChats(pResponse: any): Array { let chats = Array() for(let chat of pResponse.data.getSelf.chats) { let memberID: number @@ -204,9 +240,13 @@ export class ChatService { getBodyForGetAllChats() { const body = {query: `query { - getUser { - chats(first: 1000, offset: 0) {id, members{name, id}, - messages(first: 1000, offset: 0) {author {id}, createdAt, content}} + getSelf { + chats(first: 1000, offset: 0) { + id, members{name, id}, + messages(first: 1000, offset: 0) { + author {id}, createdAt, content + } + } } }` } From c013e06ddf25923bafea4cb7cf4b9132be992af9 Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 16:55:05 +0100 Subject: [PATCH 02/10] Chat Test2 --- src/app/components/chatmanager/chatmanager.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/chatmanager/chatmanager.component.ts b/src/app/components/chatmanager/chatmanager.component.ts index 4d7ebe3..74a1fc8 100644 --- a/src/app/components/chatmanager/chatmanager.component.ts +++ b/src/app/components/chatmanager/chatmanager.component.ts @@ -52,6 +52,7 @@ export class ChatmanagerComponent implements OnInit { refresh() { this.chatService.getAllChatsRaw() .subscribe(response => { + console.log(response) this.parentChats = this.chatService.renderAllChats(response.json()) }) } From d4e7d1ae27e3caa86e54a5e0df11d903727f6b64 Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 17:07:06 +0100 Subject: [PATCH 03/10] Chat message sending and feed voting test --- src/app/components/chat/chat.component.sass | 10 +++++++++- .../components/feed/postlist/postlist.component.ts | 12 ++++++------ src/app/services/chat/chat.service.ts | 2 +- src/app/services/feed/feed.service.ts | 10 ++++------ 4 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/app/components/chat/chat.component.sass b/src/app/components/chat/chat.component.sass index cd1c90d..5ae8d7e 100644 --- a/src/app/components/chat/chat.component.sass +++ b/src/app/components/chat/chat.component.sass @@ -80,4 +80,12 @@ padding: 0.125em resize: none #send - @include gridPosition(1, 2, 2, 3) \ No newline at end of file + @include gridPosition(1, 2, 2, 3) + button + background-color: $cFeedChooserBackground + color: $cFontWhite + border: none + border-radius: 0.5em + button:hover + background-color: lighten($cFeedChooserBackground, 10%) + cursor: pointer \ No newline at end of file diff --git a/src/app/components/feed/postlist/postlist.component.ts b/src/app/components/feed/postlist/postlist.component.ts index 68fc3c0..7c2b612 100644 --- a/src/app/components/feed/postlist/postlist.component.ts +++ b/src/app/components/feed/postlist/postlist.component.ts @@ -18,14 +18,14 @@ export class PostlistComponent implements OnInit { ngOnInit() { } - voteUp(pPost: Post){ - this.feedService.upvote(pPost.id) - this.voteEvent.emit(true) + voteUp(pPost: Post) { + this.feedService.upvote(pPost.id).subscribe(response => { + this.voteEvent.emit(true)}) } - voteDown(pPost: Post){ - this.feedService.downvote(pPost.id) - this.voteEvent.emit(true) + voteDown(pPost: Post) { + this.feedService.downvote(pPost.id).subscribe(response => { + this.voteEvent.emit(true)}) } } diff --git a/src/app/services/chat/chat.service.ts b/src/app/services/chat/chat.service.ts index 01837be..b26b9b0 100644 --- a/src/app/services/chat/chat.service.ts +++ b/src/app/services/chat/chat.service.ts @@ -228,7 +228,7 @@ export class ChatService { } getBodyForSendMessage(pchatID: number, pContent: string) { - const body = {query: `mutation($chatID: number, $content: string) { + const body = {query: `mutation($chatID: ID!, $content: String!) { sendMessage(chatId: $chatID, content: $content) {id} }`, variables: { chatId: pchatID, diff --git a/src/app/services/feed/feed.service.ts b/src/app/services/feed/feed.service.ts index e774a48..46955d5 100644 --- a/src/app/services/feed/feed.service.ts +++ b/src/app/services/feed/feed.service.ts @@ -42,7 +42,7 @@ export class FeedService { console.log(response.text())}) } - public upvote(pPostID: number): void { + public upvote(pPostID: number): any { let url = 'https://greenvironment.net/graphql' let headers = new Headers() @@ -54,11 +54,10 @@ export class FeedService { postId: pPostID }} - this.http.post(url, body).subscribe(response => { - console.log(response.text())}) + return this.http.post(url, body) } - public downvote(pPostID: number): void { + public downvote(pPostID: number): any { let url = 'https://greenvironment.net/graphql' let headers = new Headers() @@ -70,8 +69,7 @@ export class FeedService { postId: pPostID }} - this.http.post(url, body).subscribe(response => { - console.log(response.text())}) + return this.http.post(url, body) } public getAllPosts(): Array { From 1c27f6d064f3d09d68af392511cdd827a4c080b8 Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 17:17:02 +0100 Subject: [PATCH 04/10] Message sending and Date probably fixed --- src/app/services/chat/chat.service.ts | 4 ++-- src/app/services/feed/feed.service.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/services/chat/chat.service.ts b/src/app/services/chat/chat.service.ts index b26b9b0..f3d9092 100644 --- a/src/app/services/chat/chat.service.ts +++ b/src/app/services/chat/chat.service.ts @@ -228,8 +228,8 @@ export class ChatService { } getBodyForSendMessage(pchatID: number, pContent: string) { - const body = {query: `mutation($chatID: ID!, $content: String!) { - sendMessage(chatId: $chatID, content: $content) {id} + const body = {query: `mutation($chatId: ID!, $content: String!) { + sendMessage(chatId: $chatId, content: $content) {id} }`, variables: { chatId: pchatID, content: pContent diff --git a/src/app/services/feed/feed.service.ts b/src/app/services/feed/feed.service.ts index 46955d5..d847d34 100644 --- a/src/app/services/feed/feed.service.ts +++ b/src/app/services/feed/feed.service.ts @@ -78,7 +78,7 @@ export class FeedService { let headers = new Headers() headers.set('Content-Type', 'application/json') - this.http.post(url, this.getBodyForGetAllChats()) + this.http.post(url, this.getBodyForGetAllPosts()) .subscribe(response => { this.posts = this.renderAllPosts(response.json()) console.log(response) @@ -92,10 +92,10 @@ export class FeedService { let headers = new Headers() headers.set('Content-Type', 'application/json') - return this.http.post(url, this.getBodyForGetAllChats()) + return this.http.post(url, this.getBodyForGetAllPosts()) } - getBodyForGetAllChats() { + getBodyForGetAllPosts() { const body = {query: `query { getPosts (first: 1000, offset: 0) {id, content, htmlContent, upvotes, downvotes, author{name, handle, id}, createdAt} }` @@ -113,7 +113,7 @@ export class FeedService { let upvotes: number = post.upvotes let downvotes: number = post.downvotes let author = new Author(post.author.id, post.author.name, post.author.handle) - let date = post.createdAt + let date = new Date(post.createdAt).toDateString() posts.push(new Post(id, content, htmlContent, upvotes, downvotes, date, author)) } From 0467efe6826d62c769fc3fdc7ac446d7a005135c Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 17:32:34 +0100 Subject: [PATCH 05/10] Another try --- src/app/components/chat/chat.component.html | 2 +- src/app/components/chat/chat.component.ts | 22 ++++++++++++++----- .../chatmanager/chatmanager.component.html | 2 +- src/app/services/chat/chat.service.ts | 8 +++---- src/app/services/feed/feed.service.ts | 3 ++- 5 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/app/components/chat/chat.component.html b/src/app/components/chat/chat.component.html index b29ddc6..a30d068 100644 --- a/src/app/components/chat/chat.component.html +++ b/src/app/components/chat/chat.component.html @@ -4,7 +4,7 @@ {{childChat.memberName}}
-
+
{{message.content}}
{{message.content}}
diff --git a/src/app/components/chat/chat.component.ts b/src/app/components/chat/chat.component.ts index 524dc30..2cc80d4 100644 --- a/src/app/components/chat/chat.component.ts +++ b/src/app/components/chat/chat.component.ts @@ -11,17 +11,15 @@ import { Chat } from 'src/app/models/chat'; }) export class ChatComponent implements OnInit { - messages:Array = [new Chatmessage("Hallo", "01.01.",true), new Chatmessage("Hallo", "01.01.",true), - new Chatmessage("Hallo", "01.01.",true), new Chatmessage("Hallo", "01.01.",true), new Chatmessage("Hallo", "01.01.",true), - new Chatmessage("Hallo", "01.01.",true)] + messages:Array @Output() goBackEvent = new EventEmitter(); - @Output() refreshEvent = new EventEmitter() @Input() childChat: Chat; constructor(private chatService: ChatService) { } ngOnInit() { + this.refresh() } goBack() { @@ -30,8 +28,20 @@ export class ChatComponent implements OnInit { sendMessage(pElement) { this.chatService.sendMessage(this.childChat.id, pElement.value) - this.refreshEvent.emit(true) - pElement.value = "" + .subscribe(response => { + console.log("Message sent") + pElement.value = "" + this.refresh() + }) + } + + refresh() { + this.chatService.getMessagesRaw(this.childChat.id) + .subscribe(response => + { + console.log("Downloading messages ...") + this.messages = this.chatService.renderMessages(response.json()) + }) } } diff --git a/src/app/components/chatmanager/chatmanager.component.html b/src/app/components/chatmanager/chatmanager.component.html index 2be65b3..2d57601 100644 --- a/src/app/components/chatmanager/chatmanager.component.html +++ b/src/app/components/chatmanager/chatmanager.component.html @@ -2,7 +2,7 @@
- +
diff --git a/src/app/services/chat/chat.service.ts b/src/app/services/chat/chat.service.ts index f3d9092..741fd07 100644 --- a/src/app/services/chat/chat.service.ts +++ b/src/app/services/chat/chat.service.ts @@ -116,13 +116,13 @@ export class ChatService { return chatPartners } - public sendMessage(pChatID: number, pContent: string) { + public sendMessage(pChatID: number, pContent: string): any { let url = 'https://greenvironment.net/graphql' let headers = new Headers() headers.set('Content-Type', 'application/json') - this.http.post(url, this.getBodyForSendMessage(pChatID, pContent)).subscribe(response => console.log("Message sent")) + return this.http.post(url, this.getBodyForSendMessage(pChatID, pContent)) } public getMessages(pChatID): Array { @@ -265,8 +265,8 @@ export class ChatService { } getBodyForGetMessagesInChat(pChatID: number) { - const body = {query: `query($chatID: ID!) { - getChat(chatId: $chatID) { + const body = {query: `query($chatId: ID!) { + getChat(chatId: $chatId) { messages(first: 1000, offset: 0) {author {id}, createdAt, content} } }`, variables: { diff --git a/src/app/services/feed/feed.service.ts b/src/app/services/feed/feed.service.ts index d847d34..7d78568 100644 --- a/src/app/services/feed/feed.service.ts +++ b/src/app/services/feed/feed.service.ts @@ -113,7 +113,8 @@ export class FeedService { let upvotes: number = post.upvotes let downvotes: number = post.downvotes let author = new Author(post.author.id, post.author.name, post.author.handle) - let date = new Date(post.createdAt).toDateString() + let temp = new Date(Number(post.createdAt)) + let date = temp.toDateString() posts.push(new Post(id, content, htmlContent, upvotes, downvotes, date, author)) } From 0e497635bb911639d680d4d50194804f4862f180 Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 17:52:18 +0100 Subject: [PATCH 06/10] Date finally fixed --- src/app/services/feed/feed.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/feed/feed.service.ts b/src/app/services/feed/feed.service.ts index 7d78568..37bc1db 100644 --- a/src/app/services/feed/feed.service.ts +++ b/src/app/services/feed/feed.service.ts @@ -106,6 +106,7 @@ export class FeedService { public renderAllPosts(pResponse: any): Array { let posts = new Array() + //let options = {year: 'numeric', month: 'short', day: 'numeric', hour: '' } for(let post of pResponse.data.getPosts) { let id: number = post.id let content: string = post.content @@ -114,7 +115,7 @@ export class FeedService { let downvotes: number = post.downvotes let author = new Author(post.author.id, post.author.name, post.author.handle) let temp = new Date(Number(post.createdAt)) - let date = temp.toDateString() + let date = temp.toLocaleString("en-GB") posts.push(new Post(id, content, htmlContent, upvotes, downvotes, date, author)) } From e8a5bb0fabaf0852e40325fbd76dc5593cde352f Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 18:11:25 +0100 Subject: [PATCH 07/10] Handle link added und Profile page fixed --- src/app/components/feed/postlist/postlist.component.html | 2 +- src/app/components/profile/profile.component.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/feed/postlist/postlist.component.html b/src/app/components/feed/postlist/postlist.component.html index 20a247e..fdb42c0 100644 --- a/src/app/components/feed/postlist/postlist.component.html +++ b/src/app/components/feed/postlist/postlist.component.html @@ -2,7 +2,7 @@
{{post.date}}
diff --git a/src/app/components/profile/profile.component.html b/src/app/components/profile/profile.component.html index 6dce2d7..96a23b4 100644 --- a/src/app/components/profile/profile.component.html +++ b/src/app/components/profile/profile.component.html @@ -27,7 +27,7 @@

There are different levels you can reach through green behaviour. Collect 100 points to level up! The levels are called:

-
    +
    1. {{level.name}}
    2. From 861c660e8b6c231d10ad1d6c5165960c76d6d4da Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 18:53:46 +0100 Subject: [PATCH 08/10] Vote fixed --- src/app/components/feed/postlist/postlist.component.html | 8 ++++---- src/app/components/feed/postlist/postlist.component.sass | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/components/feed/postlist/postlist.component.html b/src/app/components/feed/postlist/postlist.component.html index fdb42c0..2f68662 100644 --- a/src/app/components/feed/postlist/postlist.component.html +++ b/src/app/components/feed/postlist/postlist.component.html @@ -11,10 +11,10 @@

- - - {{post.downvotes}} - {{post.upvotes}} + + {{post.downvotes}} + + {{post.upvotes}}
\ No newline at end of file diff --git a/src/app/components/feed/postlist/postlist.component.sass b/src/app/components/feed/postlist/postlist.component.sass index 2f60120..83950f4 100644 --- a/src/app/components/feed/postlist/postlist.component.sass +++ b/src/app/components/feed/postlist/postlist.component.sass @@ -43,6 +43,7 @@ @include gridPosition(1, 2, 2, 3) display: grid grid-template: 70% 30% /50% 50% + height: 3em button background-color: $cFeedItemBackground border: none From 61c719c2df21abfe463d4943a13bed5b3fac55a9 Mon Sep 17 00:00:00 2001 From: lampe_n1 Date: Tue, 29 Oct 2019 20:28:11 +0100 Subject: [PATCH 09/10] =?UTF-8?q?Friends=20f=C3=BCr=20Abschlusspr=C3=A4si?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/social/friends/friends.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/social/friends/friends.component.ts b/src/app/components/social/friends/friends.component.ts index 4c4bc27..bdac52a 100644 --- a/src/app/components/social/friends/friends.component.ts +++ b/src/app/components/social/friends/friends.component.ts @@ -11,7 +11,7 @@ import { Router } from '@angular/router'; }) export class FriendsComponent implements OnInit { - friendIDs: number[] = [1,2,3,4,5,6] + friendIDs: number[] = [29, 27, 30, 31] friends = new Array() //= ["Friend 1", "Friend 2", "Friend 3", "Friend 4", "Friend 5", "Friend 6"] constructor(private data: DatasharingService, private http: Http, private router: Router) { } From 939f91f5d3cc8bb6c47f7dd08322ff3b6795a250 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Tue, 5 Nov 2019 22:30:39 +0100 Subject: [PATCH 10/10] Update 'README.md' --- README.md | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index ac1bce6..23f9e66 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,3 @@ -# SocketApp +# Greenvironment Frontend -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.4. - -## Development server - -Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. - -## Code scaffolding - -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. - -## Build - -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. - -## Running unit tests - -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). - -## Running end-to-end tests - -Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). - -## Further help - -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). +This is the greenvironment frontend repository \ No newline at end of file