Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__pycache__/
*.py[cod]
.idea
.idea/
.env
27 changes: 18 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
FROM python:3
ENV PYTHONUNBUFFERED 1
ENV DJANGO_SETTINGS_MODULE uwpath_backend.settings
RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY . /code/
ENV PATH /code/:$PATH
FROM ubuntu:18.04 as base

COPY . /opt/uwpath.backend
WORKDIR /opt/uwpath.backend

RUN apt update
RUN apt install git ssh -y
RUN apt install wget curl vim libssl-dev ipython -y

FROM base as python38
RUN apt update && apt install python3.8 python3.8-dev python3-pip -y

FROM python38 as uwpath

RUN pip3 install requests && python3.8 deploy/get-poetry.py -y && . ~/.poetry/env && poetry export -f requirements.txt -o requirements.txt
RUN pip3 install -r requirements.txt

ENV PATH /opt/uwpath.backend/:$PATH
EXPOSE 8000
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Backend
Acts at the backend for UWPath.
Acts as the backend for UWPath.

## Set up
Please refer to [Wiki](https://github.com/UW-Path/Backend/wiki/Developer:-Set-Up) for instructions to set up restful API
## Developer Setup

## Accesing prototype
Please refer to [Wiki](https://github.com/UW-Path/Backend/wiki/Developer:-Set-Up) for instructions to set up the API.

This project currently uses [Poetry](https://python-poetry.org/) for dependency management.
Please install it using the following command:

```commandline
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
```

## Accessing prototype
A prototype is built with Django. To access the prototype, please pull the [website](https://github.com/UW-Path/Backend/tree/django_website) branch.
Loading