这是indexloc提供的服务,不要输入任何密码
Skip to content

phoffmeister/diary

Repository files navigation

The Diary

A Diary built with Django and React.

Prerequisit

Create a .env file and provide a secret. It can be obtained eg here

DJANGO_SECRET='paste your secret here'

Install

# Install Python deps
pipenv install

# deal with migrations
pipenv run python diary/manage.py makemigrations api fe
pipenv run python diary/manage.py migrate

# (optional) load testuser admin:admin
pipenv run python diary/manage.py loaddata meta/fixtures/auth_DEVONLY.json

# (optional) load fixtures for drinks and medications
pipenv run python diary/manage.py loaddata meta/fixtures/api.json

# Install js deps
yarn install

Run dev

# build react frontend
yarn run dev

# or for a production build
yarn run build

# fire up django
pipenv run python diary/manage.py runserver

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •