Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Glitch (dev-article-analysis)
committed
Jan 18, 2020
1 parent
a430e04
commit 5667af8
Showing
10 changed files
with
598 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Andrew Healey | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,48 @@ | ||
Welcome to Glitch | ||
DEV Article Analysis | ||
================= | ||
|
||
Click `Show` in the header to see your app live. Updates to your code will instantly deploy and update live. | ||
A tool to analyze a [DEV](https://dev.to) user's articles (readability, complexity and grade level, semantic analysis) over time. | ||
|
||
**Glitch** is the friendly community where you'll build the app of your dreams. Glitch lets you instantly create, remix, edit, and host an app, bot or site, and you can invite collaborators or helpers to simultaneously edit code with you. | ||
The data is displayed in interactive charts. | ||
|
||
Find out more [about Glitch](https://glitch.com/about). | ||
<br> | ||
|
||
### Install | ||
|
||
Your Project | ||
------------ | ||
`npm i` | ||
|
||
On the front-end, | ||
- edit `public/client.js`, `public/style.css` and `views/index.html` | ||
- drag in `assets`, like images or music, to add them to your project | ||
<br> | ||
|
||
On the back-end, | ||
- your app starts at `server.js` | ||
- add frameworks and packages in `package.json` | ||
- safely store app secrets in `.env` (nobody can see this but you and people you invite) | ||
### Setup | ||
|
||
Setup the application port, and DEV API key ([https://dev.to/settings/account](https://dev.to/settings/account)) | ||
|
||
Made by [Glitch](https://glitch.com/) | ||
------------------- | ||
**Linux/macOS** | ||
``` | ||
export PORT=3000 | ||
export DEV_KEY=abc123 | ||
``` | ||
|
||
\ ゜o゜)ノ | ||
**Command Prompt** | ||
``` | ||
set PORT=3000 | ||
set DEV_KEY=abc123 | ||
``` | ||
|
||
**PowerShell** | ||
``` | ||
$env:PORT = "3000" | ||
$env:DEV_KEY = "abc123" | ||
``` | ||
|
||
<br> | ||
|
||
### Run | ||
|
||
`npm run start` | ||
|
||
<br> | ||
|
||
### License | ||
|
||
MIT. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Positive | ||
const emojis = [ | ||
"😀", | ||
"😁", | ||
"😂", | ||
"🤣", | ||
"😃", | ||
"😄", | ||
"😆", | ||
"🙃", | ||
"😍", | ||
"😘", | ||
"🤩", | ||
"😺", | ||
"😸", | ||
"😹", | ||
"😻", | ||
"🙌", | ||
"👏", | ||
"👍", | ||
"👌", | ||
"🤟", | ||
"🖖", | ||
"🧚♀️", | ||
"🧚♂️", | ||
"👼", | ||
"👸", | ||
"🤴", | ||
"💃", | ||
"🕺", | ||
"👯", | ||
"👯♂️", | ||
"🦄", | ||
"🦋", | ||
"🍀", | ||
"⭐", | ||
"🌟", | ||
"✨", | ||
"☀️", | ||
"🎆", | ||
"🌈", | ||
"💎", | ||
"🎁", | ||
"🎊", | ||
"🎉", | ||
"💌", | ||
"🏳️🌈", | ||
"❤️", | ||
"💜", | ||
"💕", | ||
"💓", | ||
"💗", | ||
"💖", | ||
"💘", | ||
"💝", | ||
"💯" | ||
] | ||
|
||
module.exports = { | ||
random: function () { | ||
return emojis[Math.floor(Math.random() * emojis.length)] | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.