WIP
<iframe width="560" height="315" src="https://www.youtube.com/embed/Cw5erTPoD1c" frameborder="0" allowfullscreen></iframe>A tool for mapstory developers. Misc helpers.
- Clone this repo
- Run
install.sh
script locally
./install.sh
Note: Mapstory server needs to be running (
vagrant reload
)
Note: You need to have selenium running (
webdriver-manager start
)
Once you have both servers running, then :
Run devhelper --help
to view usage
Run devhelper
to automatically install test data on local server.
To automatically create test data :
Run devhelper
Add users to be created inside file src/data/users.yaml
Using this format:
- username: user01
name: Test
lastName: Testerson
email: user01@tester.com
password: password1234
A new user will be created for each entry as long as the email and username are unique.
The layer files go inside src/files
Then you need to add the file to src/data/all_layer_files.yaml
with the following structure:
- title: americancivilwar
filename: american_civil_war.zip
start_time: BeginDate
upload_time: 100000
published: YES
####Where:
- title: The layer title
- filename: Layer filename and extension
- start_time: Name of the start date field
- upload_time: Larger files need to wait longer. (in milliseconds)
- published: Should publish layer after upload