-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ExcitingTheory/add-docs-and-licnese
Improved documentation
- Loading branch information
Showing
8 changed files
with
1,712 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Colin Barrett-Fox, Exciting Theory | ||
|
||
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,54 +1,65 @@ | ||
# Next.js Amplify Spiders v1 | ||
# Amplify Spiders v1 | ||
|
||
## How to use | ||
<image style="position:relative; left:25%" src="./images/purple-spider.gif" alt="Amplify Spiders v1" width="50%"> | ||
|
||
Install it and run: | ||
|
||
```sh | ||
npm install | ||
npm run dev | ||
``` | ||
Amplify Spiders v1 is an AWS Amplify project that hosts a Next.js site with real-time data and custom Lambda handlers that include Lambda containers and tensorflow.js. This project provides crawlers for several different search engines for competitive analysis only. | ||
|
||
## NOTES on setup | ||
## Getting Started | ||
|
||
```bash | ||
amplify init | ||
To get started with Amplify Spiders v1, follow these steps: | ||
|
||
amplify add auth | ||
1. Clone the repository to your local machine. | ||
2. Install the necessary dependencies by running `npm install`. | ||
3. Set up your AWS Amplify environment by following the instructions in the [amplify/README.md](amplify/README.md) file. | ||
4. Run the project locally by running `npm run dev`. | ||
5. Deploy the project to the cloud by running `amplify push`. | ||
|
||
user groups free, paid, and admin. | ||
Facebook, amazon and google login. | ||
## Features and Functionality | ||
|
||
amplify push | ||
``` | ||
Amplify Spiders v1 includes the following features and functionality: | ||
|
||
--force? didn't end up doing that | ||
https://github.com/aws-amplify/amplify-adminui/issues/472 | ||
- [x] Next.js site | ||
- [x] Real-time data | ||
- [x] Custom Lambda handlers | ||
- [x] Lambda containers | ||
- [x] Tensorflow.js for Universal Sentence Encoder to compare search results to search query. | ||
- [x] Crawler for Google custom search engine | ||
- [x] Crawler for Citysearch | ||
- [x] Crawler for Yelp | ||
- [x] Crawler for Yellow Pages | ||
- [x] Crawler for FourSquare | ||
- [x] Can create a new user | ||
- [x] Can login as a user | ||
- [x] Can create a domain to monitor | ||
- [x] Can view all domains | ||
- [x] Can view domain details | ||
- [x] Can view historical rankings for a domain and a search engine as a line chart | ||
- [x] Detects if the domain is in the first page search results for a search engine | ||
|
||
What ended up working was creating auth without federation. | ||
## Roadmap | ||
|
||
Amplify Spiders v1 is currently in development. The following features and functionality are planned for future releases: | ||
|
||
```bash | ||
amplify publish | ||
``` | ||
|
||
Python lambda keys are in ssm: | ||
Use the AWS SSM GetParameter API to retrieve secrets in your Lambda function. | ||
More information can be found here: https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_GetParameter.html | ||
- [ ] Finish the main site menubar (can login, but not logout yet) IN PROGRESS | ||
- [ ] Remove lambda contianers by treeshaking this library to reduce bundle size. | ||
- [ ] Crawler for Facebook Business: Need to get the app approved by Facebook for the demo site | ||
- [ ] Crawler for Bing? | ||
- [ ] Crawler for Yahoo? | ||
- [ ] CI/CD for Container Lambda handlers? | ||
- [ ] Find good sources of regional statistical and demohgraphic data for cross referencing with search results? | ||
|
||
graphql access in lambdas | ||
## Contributing | ||
|
||
```bash | ||
API_SPIDERS1_GRAPHQLAPIENDPOINTOUTPUT | ||
API_SPIDERS1_GRAPHQLAPIIDOUTPUT | ||
ENV | ||
REGION | ||
``` | ||
If you'd like to contribute to Amplify Spiders v1, please follow these steps: | ||
|
||
Example: | ||
1. Fork the repository. | ||
2. Create a new branch for your changes. | ||
3. Make your changes and commit them. | ||
4. Push your changes to your fork. | ||
5. Create a pull request. | ||
|
||
```graphql | ||
mutation MyMutation { | ||
crawlEngines(search:"bend brewing company", postalCode:"97702") | ||
} | ||
``` | ||
## License | ||
|
||
Amplify Spiders v1 is licensed under the MIT License. See `LICENSE` for more information. |
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,47 @@ | ||
# Amplify Specific Setup | ||
|
||
See the official [Amplify Documentation](https://docs.amplify.aws/cli/start/install) for more information. | ||
|
||
## Install Amplify CLI | ||
|
||
To install the Amplify CLI, run the following command: | ||
|
||
```bash | ||
npm install -g @aws-amplify/cli | ||
``` | ||
|
||
## Configure Amplify CLI | ||
|
||
To configure the Amplify CLI, run the following command: | ||
|
||
```bash | ||
|
||
amplify configure | ||
``` | ||
|
||
## Clone as a Sample Project | ||
|
||
If you'd like to clone this as a sample project, you can do so by running the following command: | ||
|
||
```bash | ||
|
||
amplify init --app <github-url> | ||
``` | ||
|
||
|
||
## Pull backend environment | ||
|
||
If you have an existing implementation of Amplify Spiders v1, you can pull the backend environment to your local machine by running the following command: | ||
|
||
```bash | ||
amplify pull --appId APP-ID --envName ENV-NAME | ||
``` | ||
|
||
## Push backend environment | ||
|
||
If you have made changes to the backend environment, you can push those changes to the cloud by running the following command: | ||
|
||
```bash | ||
amplify push | ||
``` | ||
|
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
Oops, something went wrong.