GithubHelp home page GithubHelp logo

icon-commons's Introduction

MapStory

Coverage Status Build Status Build Status

Build Status

MapStory.org is the free atlas of change that everyone can edit. We are a community, not a company, working to organize humanity’s shared knowledge about how the world evolves geographically over time, and to make this knowledge easily accessible as an open educational resource.

The MapStory community’s work breaks down into 3 big tasks. We call them the “3 Cs”. First, once you’ve created a profile, you can collect spatio-temporal data and import it. We call each dataset imported into MapStory.org a “StoryLayer”. Second you can compose MapStories that provide nuanced understanding of historical change by combining StoryLayers and other narrative elements, like images, text, or video. Finally, you can curate the accuracy and quality of content presented in MapStory.org by adding ratings, checking metadata, making comments and committing version edits to the actual StoryLayers themselves, much like you might edit a Wikipedia page.

Getting Started

Prerequisites

This guide assumes you are using a UNIX based operating system such as Linux or OSX and have the below installed.

git
docker
docker-compose
gmake

Setup a Development Environment

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Start by forking the mapstory repository to your own Github account, and then cloning that repository to your local development environment.

git clone https://www.github.com/<your-username>/mapstory

Add the following to your /etc/hosts file

127.0.0.1       docker
::1             docker

Run the following commands in the checked out git repo to start up the docker containers.

git submodule update --init --recursive
make pull
make up

Your local site should now be available at http://docker/.

Additional information about using the docker build is available at our Docker README.

Built With

Contributing

Please read How to Contribute for details on our code of conduct, and the process for submitting pull requests to us.

Styleguides & Best Practices

Please review our Contributor Guides for best practices and style guides before contributing to the project.

icon-commons's People

Contributors

coop56 avatar cuttlefish avatar ischneider avatar lhcramer avatar sarasafavi avatar travislbrundage avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

icon-commons's Issues

add CORS headers

Evaluated django-cors-headers and this could work but may want to implement in a more flexible fashion.

add editing views

Should support:

  • create/edit collection
  • manage icon tags
  • saving icon data as new version
  • manipulating icon data versions
  • authorization (see #2)

authorization scheme for permissions to edit collections and icons

Proposed:

add the following fields (where user_model = settings.AUTH_USER_MODEL)

IconData
editor = ForeignKey(user_model)

Icon
creator = ForeignKey(user_model)

Collection
members = ManyToMany(user_model)

Default authorization rules:

  • user is superuser
  • user is creator of Icon or IconData.icon
  • user is in Icon or IconData.icon Collection.members

The authorization module should be swappable to allow downstream projects to do as they see fit.

Upload of multiple icons as a zip is failing

Expected functionality:

As a user, I expect to be able to upload a zipped file full of svg icons into the Icons Commons uploader. All of these icons should then appear individually on my profile and be available for use in styling points in composer.

Issue:

When I upload a zip full of icons to the icons commons uploader, I get the following error message:

screen shot 2017-08-31 at 4 34 29 pm

zip of icons used for testing is available at https://www.dropbox.com/s/3kvbd7goue1wxve/flags_icons.zip?dl=0

Testing was done using Chrome Version 60.0.3112.113 on August 31 at 5:00pm CST

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.