An open API service indexing awesome lists of open source software.

https://github.com/codyguru/case-review-api

Case Review System V3 Api
https://github.com/codyguru/case-review-api

django django-rest-framework postgresql

Last synced: 2 months ago
JSON representation

Case Review System V3 Api

Awesome Lists containing this project

README

          

# Case Review System V3 Api

### Used Technical Stacks

- Django
- Django REST Framework
- Postgre SQL

### Database Migration

You can reference `.env.example`.

```
DB_NAME=case_review
DB_USER=***
DB_PASSWORD=***
DB_HOST=localhost
DB_PORT=5432
```

You need to change `DB_USER` and `DB_PASSWORD` for your PostgreSQL Database.

Then make `.env` in `case_review` directory.

![Screenshot_1](https://github.com/meta-crawler/case-review-api/assets/114304642/df184a01-a579-4a42-a766-a001701e2d18)

### 1. Clone Repo

If you want to clone this repo, go to the command line and run:

```bash
git clone git@github.com:meta-crawler/case-review-api.git
cd case-review-api
```

### 2. Install Dependencies

Add python virtual env:

```bash
python3 -m venv venv # virtualenv venv
```

To active python virtual env:

```bash
source venv/bin/activate
```

Install Django dependencies:

```bash
pip3 install -r requirements.txt # pip install -r requirements.txt
```

### 3. Seed database

To seed database, open new terminal and please run:

```bash
bash seed.sh
```

### 4. Run Development Environment

In virtual env terminal, please run:

```bash
python3 manage.py runserver
```

### 5. Demo DB

If you want to quick test, you can use dummy db by running:

```bash
psql -U postgres -h 127.0.0.1 -p 5432 -d case_review -f demo_db.sql
```