Skip to content

Commit 23fe9a0

Browse files
authored
Merge pull request #133 from multinet-app/setup-dev-env
Add a django command to set up the demo data
2 parents 68942b8 + 9273faa commit 23fe9a0

14 files changed

Lines changed: 228 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This is the simplest configuration for developers to start with.
88
2. Run `docker-compose run --rm django ./manage.py createsuperuser`
99
and follow the prompts to create your own user. Make sure to supply an email address.
1010
3. Run `docker-compose run --rm django ./manage.py createarangoreadonlyuser`
11+
4. To hydrate the database with the demo data, run `docker-compose run --rm django ./manage.py setupdevenv <user_email from above step>`
1112

1213
### Run Application
1314
1. Run `docker-compose up`
@@ -37,6 +38,7 @@ but allows developers to run Python code on their native system.
3738
7. Run `./manage.py migrate`
3839
8. Run `./manage.py createsuperuser` and follow the prompts to create your own user. Make sure to supply an email address.
3940
9. Run `./manage.py createarangoreadonlyuser`
41+
10. To hydrate the database with the demo data, run `./manage.py setupdevenv <user_email from above step>`
4042

4143
### Run Application
4244
1. Ensure `docker-compose -f ./docker-compose.yml up -d` is still active

data/boston/types/clubs.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"_key": "label",
3+
"name": "label"
4+
}

data/boston/types/members.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"_key": "label",
3+
"name": "label"
4+
}

data/boston/types/membership.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"_from": "label",
3+
"_to": "label"
4+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"_key": "label",
3+
"_from": "label",
4+
"_to": "label"
5+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"_key": "label",
3+
"followers_count": "number",
4+
"query_tweet_count": "number",
5+
"friends_count": "number",
6+
"statuses_count": "number",
7+
"listed_count": "number",
8+
"favourites_count": "number",
9+
"count_followers_in_query": "number",
10+
"screen_name": "label",
11+
"profile_image_url": "label",
12+
"influential": "boolean",
13+
"original": "boolean"
14+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"_key": "label",
3+
"name": "label",
4+
"group": "category"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"_from": "label",
3+
"_to": "label",
4+
"value": "number"
5+
}

data/movies/types/edgelist.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"actors": "label",
3+
"films": "label"
4+
}

data/movies/types/films.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"Title": "label",
3+
"Alternate title": "label",
4+
"Genre": "category",
5+
"Primary Source Verification": "label",
6+
"Notes": "label",
7+
"Production Company": "label",
8+
"Production date": "label",
9+
"Distribution date": "label",
10+
"Length (reels)": "label",
11+
"Actors": "label",
12+
"Directors": "label",
13+
"Producers": "label",
14+
"Camerawork": "label",
15+
"Attachments": "label",
16+
"Source": "label",
17+
"Writer": "label",
18+
"Otherwise Involved": "label",
19+
"Link to media": "label",
20+
"Distributor": "label"
21+
}

0 commit comments

Comments
 (0)