Skip to content

Commit

Permalink
add firebase hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmnouira committed Jan 8, 2020
1 parent dcbef94 commit a63630d
Show file tree
Hide file tree
Showing 63 changed files with 2,923 additions and 639 deletions.
909 changes: 909 additions & 0 deletions .firebase/hosting.d3d3.cache

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "nomadic-ocean-249917"
}
}
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@

Our chat application will show a login page withe _e-mail_ and _password_ fields. The user will be able to log in or create a new account, when a user logs in, it will go to a tabs interface where we have a list of all users of the application, the Account tab will allow the user to upload a profile image and log out of the app.

## Overview
## Screenshots

<img src="/img/account.png" width="375"/><img src="/img/users.png" width="375"/>
<img src="/img/account.png" width="375"/>&nbsp;&nbsp;<img src="/img/users.png" width="375"/>

### Run as Angular App

Open your terminal/cmd and run the following commadans:

1. type `git clone https://github.com/ahmnouira/chat-app`.
2. `cd chat-app` to enter to app folder.
3. `npm i` to install the app dependencies.
4. `ng serve` or `npm start` run the app server.

![register](/img/register.png)
![login](/img/login.png)
6 changes: 3 additions & 3 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="io.ahmnouira.chat-app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>chat-app</name>
<description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework.com" href="http://ionicframework.com/">Ionic Framework Team</author>
<description>A real-time chat ionic 4 application with firebase</description>
<author email="ahmnouira@gmail.com" href="https://github.com/ahmnouira/chat-app">Ahmed Nouira</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
Expand Down
7 changes: 7 additions & 0 deletions database.rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
".read": true,
".write": true
}
}
19 changes: 19 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "www",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Binary file modified img/account.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/login.png
Binary file not shown.
Binary file removed img/register.png
Binary file not shown.
Binary file modified img/users.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a63630d

Please sign in to comment.