You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
1.5 KiB

# Cash Dash Stacks
3 years ago
- A simple way to track expenses
- cash budgeting in digital mode
3 years ago
3 years ago
# Setup (Docker)
3 years ago
```sh
$ git clone [this repo]
```
## _build containers_
```sh
3 years ago
$ docker-compose build
```
## OR _build only backend_
```sh
$ docker-compose -f docker-compose.backend.yml build
```
## _initialize database and seed data_
```sh
3 years ago
$ docker-compose run --rm server bash
# Puts you into the command line in the server container
$ > python manage.py migrate
$ > python manage.py createsuperuser --email admin@westwinds.io --username admin
3 years ago
$ > exit
# You are now back in your machine bash
```
# Running (Docker)
```sh
# Containers will all (re)start
$ docker-compose down && docker-compose up -d
```
## _backend only_
```sh
$ docker-compose down && docker-compose -f docker-compose.backend.yml up -d
3 years ago
```
3 years ago
# Setup (Not Docker)
## Frontend
3 years ago
```sh
$ cd frontend
$ npm i
```
## Backend
```sh
3 years ago
$ cd server
$ virtualenv -p python3 env
$ source env/bin/activate
(env) $ pip install -r requirements.txt
(env) $ python manage.py makemigrations
(env) $ python manage.py migrate
(env) $ python manage.py seed
(env) $ DEBUG=true python manage.py runserver 0.0.0.0:8000
3 years ago
```
# Running (Not Docker)
_frontend_
```sh
$ cd frontend
$ npm run start
```
_backend_
```sh
$ cd server
$ source env/bin/activate
(env) $ DEBUG=true python manage.py runserver 0.0.0.0:8000
```
# Ideas
3 years ago
- put items in your wishlist and track savings to buy big-ticket items
- view spending trends
3 years ago
# Todo
3 years ago
https://github.com/dank-inc/cash-stacks/projects