Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwcnewton/esri-poc
A proof of concept using the ESRI JS API, Docker, Express, OAuth, Mongo DB and Express js with Karma unit tests
https://github.com/jwcnewton/esri-poc
Last synced: about 1 month ago
JSON representation
A proof of concept using the ESRI JS API, Docker, Express, OAuth, Mongo DB and Express js with Karma unit tests
- Host: GitHub
- URL: https://github.com/jwcnewton/esri-poc
- Owner: jwcnewton
- Created: 2019-04-16T21:30:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-10T13:32:16.000Z (almost 4 years ago)
- Last Synced: 2024-10-10T14:18:00.987Z (2 months ago)
- Language: JavaScript
- Size: 58.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESRI-POC
A proof of concept using the ESRI JS API, Docker, Express, OAuth and Mongo DB with Karma unit tests# Set-up
Clone the project
```bash
git clone https://github.com/jwcnewton/ESRI-POC.git
```
Then move into the folder
```bash
cd ESRI-POC
```Update `server-variables.env` with github client id and secret. See [Setting up Github oauth](https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/) if you're unsure how set this up.
> Localhost callback: http://localhost:8000/callback
Then update the client id and secret
```yml
AUTHCLIENT_ID=XXX
AUTHCLIENT_SECRET=XXX
```## Running the project
```bash
docker-compose up
```## Running the tests
Install Karma test runnner globally
```bash
npm i -g karma
```Then move into the client folder
```bash
cd ESRI-POC/client
```To start Karma
```bash
karma start
```## Client APP
> localhost:8080
## API
> localhost:8000
# Dependencies
[Docker](https://www.docker.com/)