Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 25, 2022. It is now read-only.
NotificationsYou must be signed in to change notification settings

workflowr/workflowr.io-django

Repository files navigation

ARCHIVED: I instead decided to deployworkflowr.io using a combinationof the static site generator Hugo (website source code atworkflowr/workflowr.io)and a GitHub app (also namedworkflowr.io) to register projects.

workflowr.io

A website to share and discoverworkflowr projects.

Setup computational environment

The software dependencies are managed by conda and specified inenvironment.yml. InstallMiniconda to get started.

# Create the environmentconda env create --file environment.yml# Activate the environmentconda activate wio# Update the environmentconda env update --file environment.yml# Deactivate the environmentconda deactivate wio

Development

# Run the test suitepython manage.py test# Restart database for interactive testingbash setup-models.sh# Create a temporary superuser for testing the sitebash createsuperuser.sh# Run the development server (http://localhost:8000/)python manage.py runserver# Start an interactive shell with Django settings activatedpython manage.py shell

Heroku

# Install Heroku CLI appsudo snap install heroku --classic# Login (opens browser for authentication)heroku login# Run the development server (http://localhost:5000/)heroku local web# Add heroku remotegit remote add  heroku https://git.heroku.com/workflowr.git# Deploy the sitegit push heroku master# Open the site in the browserheroku open# View the server logsheroku logs --tail# View currently used resourcesheroku ps# Start an interactive shell on the remote serverheroku run python manage.py shell# Run the database migrations on the remote serverheroku run python manage.py migrate

Endpoints

  • projects/ - List all projects
  • projects/github/ - List all projects hosted on GitHub
  • projects/github/user/ - List all of user's projects hosted on GitHub
  • projects/github/user/project/ - Detail view for project
  • authors/ - List all authors
  • tags/ - List all tags
  • tag/tagname/ - List all projects tagged with "tagname"
  • publications/ - List all publications

Create a UML diagram of database schema

Use thegraph_models feature ofdjango-extensions to create a UMLdiagram of the database schema specified inprojects/models.py.

conda activate wiopython manage.py graph_models --pydot projects -o graph-model.png

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp