Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mavagio/us-infographic
Data visualisation for United States
https://github.com/mavagio/us-infographic
datavisualization geochart geomap googlecharts-api
Last synced: 20 days ago
JSON representation
Data visualisation for United States
- Host: GitHub
- URL: https://github.com/mavagio/us-infographic
- Owner: mavagio
- License: mit
- Created: 2018-06-27T08:15:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T15:15:24.000Z (over 5 years ago)
- Last Synced: 2024-10-14T15:21:52.431Z (3 months ago)
- Topics: datavisualization, geochart, geomap, googlecharts-api
- Language: JavaScript
- Homepage: https://usinfo.herokuapp.com/
- Size: 1.83 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The following README provides steps on how to run the code locally.
The application is deployed at: https://usinfo.herokuapp.com/
## How to run locallyRun the code: front end
---------------
### Prerequisites
Make sure to have the following installed on your machine:
- Node > 8.9 (!important)
The following is an Angular 6 single page application, therefore it is possible to only run the front end without the server.
For that run the following commands:```
cd client; npm i; npm start
```Run the code: back end
---------------
## Prerequisites
Make sure to have the following installed on your machine:
- mongoDB (make sure to have mongod running locally when running the code on a local machine)
- Node > 8.9 (!important)
### Steps
- Install dependencies. From root directory run:
```
npm run install:dependencies
```
- Create .env file in server folder.
- Copy the following lines to .env file.
```
PORT=3000
DEV_DB='mongodb://localhost/us_info_db'
NODE_ENV='development'
JWT_SECRET='change_this_example_secret'
```
- (Optional) Add the following to .env file if you want to run MongoDB with cloud provider (e.g. Mlab):
```
PROD_DB={{the URI provided by mongoDB could providers, e.g. Mlab}}
```
- Run the application by starting the client and server separately:
```
cd server; npm start
```
```
cd client; npm start
```
This will create the database locally. By running the server with the command:
```
npm run start:cloud
```
## Technology stack
MEAN Stack with TypeScript
- MongoDB
- Angular 6+
- Express
- Node > 8.9
- TypeScript
- JavaScript