Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit fb56358

Browse files
author
Jeff
committed
Releasing v0.3.0.
1 parent 8260c5e commit fb56358

File tree

110 files changed

+4792
-1
lines changed

Some content is hidden

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

110 files changed

+4792
-1
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
yarn.lock

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
node_js: node
3+
sudo: false
4+
cache: false
5+
6+
stages:
7+
- name: "application test & build"
8+
9+
jobs:
10+
include:
11+
- stage: "application test & build"
12+
name: "Team Chat Reference Application"
13+
install:
14+
- npm install
15+
script:
16+
- npm run test
17+
- npm run build

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 PubNub
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,56 @@
1-
# App Team Chat
1+
# PubNub Team Chat
2+
3+
[![Build Status](https://travis-ci.com/pubnub/typescript-ref-app-team-chat.svg?token=ey6rVJnpqsBKpxXy2fYF&branch=master)](https://travis-ci.com/pubnub/typescript-ref-app-team-chat)
4+
5+
This repository contains code from the Team Chat Reference App hosted on [PubNub Chat Docs Page](https://www.pubnub.com/docs/chat/quickstart#quickstart).
6+
7+
## Requirements
8+
9+
* [Node.js](https://nodejs.org/en/)
10+
* [Gulp](https://gulpjs.com) - required to install project dependencies.
11+
12+
## Prerequisites
13+
14+
### Sign Up for a PubNub Account
15+
16+
If you don't already have an account, you can create one for free [here](https://dashboard.pubnub.com/).
17+
18+
1. Sign in to your PubNub [Admin Dashboard](https://dashboard.pubnub.com/), click Create New App for PubNub Chat and give your app a name.
19+
20+
1. Select your new app, then click its keyset.
21+
22+
1. Copy the Publish and Subscribe keys. You'll need these keys to include in this project.
23+
24+
## Building the project
25+
26+
1. Clone the Github repository.
27+
28+
```bash
29+
git clone git@github.com:pubnub/typescript-ref-app-team-chat.git
30+
```
31+
32+
2. Install the project.
33+
34+
```bash
35+
npm install
36+
```
37+
38+
2. Setup the project to load sample data related to users and spaces. Note that this step can be skipped if you have already loaded data into the application.
39+
40+
```bash
41+
npm run setup
42+
```
43+
44+
3. Run the project in your local environment.
45+
46+
```bash
47+
npm start
48+
```
49+
50+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
51+
52+
## Further Information
53+
54+
Visit the [PubNub Chat Docs](https://www.pubnub.com/docs/chat) page for more information on how to use the React and Redux SDKs to easily add in-app chat to your applications.
55+
56+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

package.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"name": "team-chat",
3+
"version": "0.2.0",
4+
"description": "Team Chat - A Reference Application for PubNub with Typescript, React and Redux",
5+
"license": "MIT",
6+
"private": true,
7+
"dependencies": {
8+
"@reach/router": "^1.2.1",
9+
"@types/reach__router": "^1.2.6",
10+
"@types/emoji-mart": "^2.11.0",
11+
"@types/pubnub": "^4.0.7",
12+
"@types/react": "^16.9.4",
13+
"@types/react-dom": "^16.9.1",
14+
"@types/react-redux": "^7.1.2",
15+
"@types/styled-components": "^4.1.19",
16+
"emoji-mart": "^2.11.1",
17+
"polished": "^3.4.1",
18+
"pubnub": "^4.27.0",
19+
"pubnub-react": "^2.0.0-beta.4",
20+
"pubnub-redux": "^0.1.16-alpha",
21+
"react": "^16.9.0",
22+
"react-dom": "^16.9.0",
23+
"react-pose": "^4.0.8",
24+
"react-redux": "^7.1.0",
25+
"redux": "^4.0.4",
26+
"redux-thunk": "^2.3.0",
27+
"reselect": "^4.0.0",
28+
"styled-components": "^4.4.0"
29+
},
30+
"scripts": {
31+
"start": "react-scripts start",
32+
"setup": "cd setup && node populate.js",
33+
"build": "react-scripts build",
34+
"test": "react-scripts test",
35+
"eject": "react-scripts eject"
36+
},
37+
"eslintConfig": {
38+
"extends": "react-app"
39+
},
40+
"browserslist": {
41+
"production": [
42+
">0.2%",
43+
"not dead",
44+
"not op_mini all"
45+
],
46+
"development": [
47+
"last 1 chrome version",
48+
"last 1 firefox version",
49+
"last 1 safari version"
50+
]
51+
},
52+
"husky": {
53+
"hooks": {
54+
"pre-commit": "lint-staged"
55+
}
56+
},
57+
"lint-staged": {
58+
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
59+
"prettier --write",
60+
"git add"
61+
]
62+
},
63+
"babelMacros": {
64+
"styledComponents": {}
65+
},
66+
"devDependencies": {
67+
"@testing-library/jest-dom": "^4.0.0",
68+
"@testing-library/react": "^9.1.4",
69+
"@types/jest": "24.0.18",
70+
"@types/node": "^12.7.5",
71+
"cli-progress": "^3.3.1",
72+
"eslint-plugin-react-hooks": "^2.1.1",
73+
"file-system": "^2.2.2",
74+
"husky": "^3.0.8",
75+
"lint-staged": "^9.4.1",
76+
"node": "^12.12.0",
77+
"prettier": "^1.18.2",
78+
"react-scripts": "3.2.0",
79+
"readline": "^1.3.0",
80+
"requirejs": "^2.3.6",
81+
"typescript": "3.6.3"
82+
}
83+
}

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<link
19+
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap"
20+
rel="stylesheet"
21+
/>
22+
23+
<!--
24+
Notice the use of %PUBLIC_URL% in the tags above.
25+
It will be replaced with the URL of the `public` folder during the build.
26+
Only files inside the `public` folder can be referenced from the HTML.
27+
28+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
29+
work correctly both with client-side routing and a non-root public URL.
30+
Learn how to configure a non-root public URL by running `npm run build`.
31+
-->
32+
<title>React App</title>
33+
</head>
34+
<body>
35+
<noscript>You need to enable JavaScript to run this app.</noscript>
36+
<div id="root"></div>
37+
<!--
38+
This HTML file is a template.
39+
If you open it directly in the browser, you will see an empty page.
40+
41+
You can add webfonts, meta tags, or analytics to this file.
42+
The build step will place the bundled scripts into the <body> tag.
43+
44+
To begin the development, run `npm start` or `yarn start`.
45+
To create a production bundle, use `npm run build` or `yarn build`.
46+
-->
47+
</body>
48+
</html>

public/logo192.png

5.22 KB
Loading

public/logo512.png

9.44 KB
Loading

public/manifest.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
20+
],
21+
"start_url": ".",
22+
"display": "standalone",
23+
"theme_color": "#000000",
24+
"background_color": "#ffffff"
25+
}

0 commit comments

Comments
 (0)