Skip to content

SVinternShip/Frontend-Backend

Repository files navigation

Frontend & Backend

Index

About The Project

Project Title

AssiCT Click the image below to watch service introduction video Video Label

Project Overview

image

Frontend
Frontend
Backend
Devops

Getting Started

Prerequisites

Our service was created through the AI Application Development by Silicon Valley Engineering program organized by Headstart Silicon Valley. http://www.learnflagly.com/courses/347/

DATABASE

We didn't support any database on Dockerfile. So, if you want to test this project you need to declare 2 DB first.

  1. Google Cloud Storage Bucket
  2. Postgresql

On Google Cloud Storage Bucket, you need access key json file.

On Postgresql, you need Host address, User name/password, Database name.

Two DB Declarations

Postgres DB & Bucket Name
Set DB NAME to DB PORT to your environment in the .env_server, .env_local file.

DB_NAME=AssiCT
DB_USER=dbmasteruser
DB_HOST=ls-be2b7899bb8e4a14b10c9b048a594941c00a2e35.cd0wtijqfgih.ap-northeast-2.rds.amazonaws.com
DB_PASSWORD=svproject22
DB_PORT=5432
BUCKET_NAME=#Google storage Bucket Name
Google Storage
Get the gc_connect.json file and save it with the same name

Installing

$ git clone https://github.com/SVinternShip/Frontend-Backend.git
  • If you are running in your own server, modify domain.

Running Local for DEV

(Optional) After setting DB properly, you need to declare ML server. If you wont, file upload and predict service may not work.

Set ML_SERVER to your environment in the .env_local file.

ML_SERVER=15.164.65.34:5000

Then, build docker-compose-dev.yml

$ docker-compose -f docker-compose-dev.yml up --build -d

Running on Local environment only for check Django & React.

That means Nginx, Grafana, Promethus.. may not working.

Issuing SSL Certificates for HTTPS

You must first obtain ssl authentication to run https.

Frontend-Backend/ssl-certification/init-letsencrypt.sh << Enter your domain at init-lensencrypt.sh

image

Then just run init-lensencrypt.sh with sudo. 

When docker composed, a data folder is generated and an ssl certificate is automatically issued.

Alert Manager

Modify the recipient email information and auth password in config.yml.
For your information. The auth password is a Google application password, which you want to set according to your settings.

Modify Target domain

In the .env.production file, modify target to your domain.

Final

Finally, go to the top-level folder and type the command below in the terminal.

docker-compose up --build -d

File Manifest

├─alertmanager
│  └─templates
├─backend
│  └─assiCT_api_server
│      ├─alarm
│      │  └─migrations
│      ├─config
│      ├─ct
│      │  ├─api
│      │  ├─migrations
│      │  ├─models
│      │  └─serializer
│      └─doctor
│          ├─migrations
│          ├─models
│          └─serializer
├─frontend
│  └─assict_front
│      ├─public
│      └─src
│          ├─assets
│          │  └─img
│          ├─components
│          │  ├─Card
│          │  ├─Configurator
│          │  ├─FileUpload
│          │  ├─Footer
│          │  ├─GradientBorder
│          │  ├─Icons
│          │  ├─Layout
│          │  ├─Navbars
│          │  ├─Result
│          │  ├─Separator
│          │  ├─Sidebar
│          │  ├─Sign
│          │  └─Tables
│          ├─theme
│          │  ├─additions
│          │  │  ├─card
│          │  │  └─layout
│          │  ├─components
│          │  └─foundations
│          └─views
│              ├─Dashboard
│              └─pages
├─grafana
│  └─provisioning
│      ├─dashboards
│      └─datasources
├─nginx
├─prometheus
└─ssl-certification

Pages by port

prometheus - (host):9090

image

grafana - (host):3000

image

web - (host)

image

swagger - (host)/api/swagger

image

celery - (host):5555

image

Copyrights / End User Licesnse

MIT License

Copyright (c) 2020 always0ne

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Contact Information

Name 전준형 김민지 김성윤 김정원 전경희
Profile
role Team ㅣLeader,
Backend ,
Frontend
Frontend,
Backend Django
ML Frontend Backend
Github @Joon_Hyoung @Minji Kim @sykim1106 @grdnr13 @kjeon0901

About

frontend & api-server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •