reading-record
reading-record is a web application for recording your reading contents.
Web
https://django-reading-record.com
Technologies Used
- Django
- PostgresQL
- Nginx
Production Environment
- AWS EC2
Usage
Git clone
$ git clone https://github.com/tomoish/reading-record.git
Building a development environment
- Create .env file in reading-record/book_project directory and set the environment variables:
SECRET_KEY=<secret key> DEBUG=True ALLOWED_HOSTS=127.0.0.1,localhost DATABASE_URL=postgres://<database user>:<database password>@localhost:/<database name> DATABASE_DB=<database name> DATABASE_USER=<database user> DATABASE_PASSWORD=<database password> DATABASE_HOST=db DATABASE_PORT=5432 POSTGRES_USER=<database user> POSTGRES_PASSWORD=<database password> POSTGRES_DB=<database name> DATABASE=postgres - Build the images and run the containers:
docker compose up -d --build - Run the migrations:
docker compose exec web python manage.py migrate --noinput - Collects the static files into STATIC_ROOT:
docker compose exec web python manage.py collectstatic --no-input --clear - Test it out at http://localhost:1317.
