Skip to content

Commit

Permalink
style: fix line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
heewoneha committed Nov 30, 2023
1 parent 2dd576f commit a0c6514
Show file tree
Hide file tree
Showing 32 changed files with 1,226 additions and 1,226 deletions.
60 changes: 30 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# WowProject
A therapeutic functional mobile game that provides children with psychological comfort through interaction with a doll

## Project Duration
2023.09.01~2023.11.30

## Members of Team 9
|한상현|정희원|박덕열|기여스|
|:--:|:--:|:--:|:--:|
|[@Hyunnnnnnn](https://github.com/Hyunnnnnnn)|[@heewoneha](https://github.com/heewoneha)|[@SimpleCorini](https://github.com/SimpleCorini)|[@Kiyeoos](https://github.com/Kiyeoos)|

## Results of This Project
### Video

### Image

## Project Architecture
![Architecture](https://github.com/my-friend-wow/WowProject/assets/74031620/7b3be650-5f5b-437a-917b-ada201d120a5)

## Tech Stack
![Stack](https://github.com/my-friend-wow/WowProject/assets/74031620/001ccd24-0dbf-4ef2-bebc-7cd36789a98b)

|Field|Tech Stack|
|:--:|:--|
|Front-end|<img src="https://img.shields.io/badge/Flutter-E6E6E6?style=for-the-badge&logo=flutter&logoColor=013ADF"/>|
|Back-end|<img src="https://img.shields.io/badge/Flask-black?style=for-the-badge&logo=flask&logoColor=white"/> <img src="https://img.shields.io/badge/Gunicorn-E6E6E6?style=for-the-badge&logo=gunicorn&logoColor=298A08"/> <img src="https://img.shields.io/badge/Docker-E6E6E6?style=for-the-badge&logo=docker&logoColor=2496ED"/> <img src="https://img.shields.io/badge/Nginx-21610B?style=for-the-badge&logo=Nginx&logoColor=white"/> <img src="https://img.shields.io/badge/Azure SQL DB (MSSQL)-017CEE?style=for-the-badge&logo=microsoft&logoColor=white"/>|
|Hardware|<img src="https://img.shields.io/badge/Raspberry Pi-C7053D?style=for-the-badge&logo=raspberrypi&logoColor=white"/> <img src="https://img.shields.io/badge/OpenAI-E6E6E6?style=for-the-badge&logo=OpenAI&logoColor=black">|

## ERD
![Erd](https://github.com/my-friend-wow/WowProject/assets/74031620/cb8a3399-4a11-400a-8311-6f0947cc2baf)
# WowProject
A therapeutic functional mobile game that provides children with psychological comfort through interaction with a doll

## Project Duration
2023.09.01~2023.11.30

## Members of Team 9
|한상현|정희원|박덕열|기여스|
|:--:|:--:|:--:|:--:|
|[@Hyunnnnnnn](https://github.com/Hyunnnnnnn)|[@heewoneha](https://github.com/heewoneha)|[@SimpleCorini](https://github.com/SimpleCorini)|[@Kiyeoos](https://github.com/Kiyeoos)|

## Results of This Project
### Video

### Image

## Project Architecture
![Architecture](https://github.com/my-friend-wow/WowProject/assets/74031620/7b3be650-5f5b-437a-917b-ada201d120a5)

## Tech Stack
![Stack](https://github.com/my-friend-wow/WowProject/assets/74031620/001ccd24-0dbf-4ef2-bebc-7cd36789a98b)

|Field|Tech Stack|
|:--:|:--|
|Front-end|<img src="https://img.shields.io/badge/Flutter-E6E6E6?style=for-the-badge&logo=flutter&logoColor=013ADF"/>|
|Back-end|<img src="https://img.shields.io/badge/Flask-black?style=for-the-badge&logo=flask&logoColor=white"/> <img src="https://img.shields.io/badge/Gunicorn-E6E6E6?style=for-the-badge&logo=gunicorn&logoColor=298A08"/> <img src="https://img.shields.io/badge/Docker-E6E6E6?style=for-the-badge&logo=docker&logoColor=2496ED"/> <img src="https://img.shields.io/badge/Nginx-21610B?style=for-the-badge&logo=Nginx&logoColor=white"/> <img src="https://img.shields.io/badge/Azure SQL DB (MSSQL)-017CEE?style=for-the-badge&logo=microsoft&logoColor=white"/>|
|Hardware|<img src="https://img.shields.io/badge/Raspberry Pi-C7053D?style=for-the-badge&logo=raspberrypi&logoColor=white"/> <img src="https://img.shields.io/badge/OpenAI-E6E6E6?style=for-the-badge&logo=OpenAI&logoColor=black">|

## ERD
![Erd](https://github.com/my-friend-wow/WowProject/assets/74031620/cb8a3399-4a11-400a-8311-6f0947cc2baf)
18 changes: 9 additions & 9 deletions back_end/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Usage

> [!Note]
> Make sure to create `.env` file inside the `/back_end/server` directory based on `.env.example`.
```bash
docker build -t {원하는_이름} .
docker run -d -p {원하는_포트}:5000 {원하는_이름}
```
## Usage

> [!Note]
> Make sure to create `.env` file inside the `/back_end/server` directory based on `.env.example`.
```bash
docker build -t {원하는_이름} .
docker run -d -p {원하는_포트}:5000 {원하는_이름}
```
84 changes: 42 additions & 42 deletions back_end/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
# .env 파일을 /back_end/server 안에 생성 후 실행하세요
FROM python:3.8-slim

WORKDIR /app

# using cache, pip install
COPY requirements.txt /app

RUN apt-get update && \
apt-get install -y curl && \
pip install --upgrade pip && \
pip install -r ./requirements.txt

# copy all files & dirs
COPY . /app

# flask with gunicorn
ENV FLASK_APP=run

RUN mkdir -p /var/log/gunicorn && \
touch /var/log/gunicorn/error.log && \
touch /var/log/gunicorn/access.log

# mssql
RUN curl https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc && \
curl https://packages.microsoft.com/config/debian/11/prod.list | tee /etc/apt/sources.list.d/mssql-release.list && \
apt-get update && \
ACCEPT_EULA=Y apt-get install -y msodbcsql18

# cron job
RUN apt-get install -y python-is-python3

RUN apt-get install -y cron
RUN cp /app/cronjob /etc/cron.d/cronjob && \
chmod +x /etc/cron.d/cronjob && \
crontab /etc/cron.d/cronjob

EXPOSE 5000

# run shell
RUN chmod +x /app/entrypoint.sh
CMD ["./entrypoint.sh"]
# .env 파일을 /back_end/server 안에 생성 후 실행하세요
FROM python:3.8-slim

WORKDIR /app

# using cache, pip install
COPY requirements.txt /app

RUN apt-get update && \
apt-get install -y curl && \
pip install --upgrade pip && \
pip install -r ./requirements.txt

# copy all files & dirs
COPY . /app

# flask with gunicorn
ENV FLASK_APP=run

RUN mkdir -p /var/log/gunicorn && \
touch /var/log/gunicorn/error.log && \
touch /var/log/gunicorn/access.log

# mssql
RUN curl https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc && \
curl https://packages.microsoft.com/config/debian/11/prod.list | tee /etc/apt/sources.list.d/mssql-release.list && \
apt-get update && \
ACCEPT_EULA=Y apt-get install -y msodbcsql18

# cron job
RUN apt-get install -y python-is-python3

RUN apt-get install -y cron
RUN cp /app/cronjob /etc/cron.d/cronjob && \
chmod +x /etc/cron.d/cronjob && \
crontab /etc/cron.d/cronjob

EXPOSE 5000

# run shell
RUN chmod +x /app/entrypoint.sh
CMD ["./entrypoint.sh"]
12 changes: 6 additions & 6 deletions back_end/server/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .common import app, db
from .main import *
from .account import *
from .pedometer import *
from .my_friend import *
from .room import *
from .common import app, db
from .main import *
from .account import *
from .pedometer import *
from .my_friend import *
from .room import *
Loading

0 comments on commit a0c6514

Please sign in to comment.