Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

FalconLee1011/Anonymous-Picture-Diary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NTOU-mongoDB-project
Anonymous Picture Diary | 匿名照片日記

Overview

It's a homework but also a quick demonstration of how Flask + Vue + mongoDB works.

Demo videos here

Requirements

Backend

  • pyenv (optional)
  • pipenv or install the packages listed below
    • Python packages
      • flask
      • flask-cors
      • pymongo
      • python-magic

Frontend

  • npm
  • @vue/cli >= 4.5.8

Before anything

Backend

  • Run pipenv install to install all dependencies if you are using pipenv
  • Prepare a mongoDB
  • Copy config.example.py to config.py
  • Modify the connection string (host variable) in config.py
  • Make a directory named "cache" under <repo>/backend/

Frontend

  • Run npm install to install all dependencies.

How to use

Setup a development environment.

Backend

  • Run pipenv run python server.py

Frontend

Deploy the app

  • This project is not designed for deployment but for a quick demonstration of how Flask + Vue + mongoDB works.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published