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

https://github.com/chia1104/dcard_analysis_laravel

Our backend is developed using PHP with the Laravel framework, and the final project is deployed onto a Cloud Server. We have chosen Google Cloud Platform (GCP) as our cloud provider, and have utilized their Cloud Run service to establish an API.
https://github.com/chia1104/dcard_analysis_laravel

docker gcp laravel nginx rest-api

Last synced: 2 months ago
JSON representation

Our backend is developed using PHP with the Laravel framework, and the final project is deployed onto a Cloud Server. We have chosen Google Cloud Platform (GCP) as our cloud provider, and have utilized their Cloud Run service to establish an API.

Awesome Lists containing this project

README

          

# Dcard Analysis Laravel, Rest API

Dcard is an anonymous social community website commonly used by university students, where they can post content related to school, coursework, daily life, and more. As a result, the university counseling department hopes that we can crawl Dcard for articles related to Chang Gung University, in order to obtain timely feedback from students regarding their thoughts on the university, or to identify students who may be experiencing emotional difficulties.

Our project uses a Python web scraper to automatically retrieve and store article content into a database, using MySQL Workbench for database management. We then utilize the Snow NLP package to analyze article content and store the results in the database. For the frontend, we chose to develop our app using Android Studio. The system is constantly running a detection program, which will automatically utilize the IFTTT platform to send a warning message to school staff via Line if extreme language is detected in the crawled article content.

Our app primarily uses API connections to set up data and complete main functions, including an article list, charts (pie chart, bar chart, and line chart), and search function. Our backend is developed using PHP with the Laravel framework, and the final project is deployed onto a Cloud Server. We have chosen Google Cloud Platform (GCP) as our cloud provider, and have utilized their Cloud Run service to establish an API.

API V1: It has no longer supported.

API V2: [API Documentation](https://dcard-analysis-laravel-fdqsyjapma-de.a.run.app/api/documentation).

## Languages and Tools



php


laravel


mongodb


mysql


docker


gcp


heroku


nginx

## Features
- [X] Rest API
- [X] Cloud Computing
- [X] Nginx
- [ ] Complete API V2
- [ ] React UI

## Get Started
Generate .env file:
```
$ cp .env.example .env
$ php artisan key:generate
```
Install dependencies:
```
$ composer install
```
Start the server:
```
$ php artisan serve
```
## Docker
Run the server in Docker:
```
$ docker build -t app:v2 .
$ docker run -e PORT=80 -p 80:80 app:v2
```