Skip to content

Syc056/photo_temp

Repository files navigation

PhotoMong

Setup guide for PhotoMong

Software Requirement

https://docs.google.com/document/d/1FQ5ymvjH7Cqen4Xe6SP6PP8iYMq-D1Bs0hz6Q3kEq1c/edit?usp=sharing

Database Schema

https://dbdiagram.io/d/Photomong-65f16a3db1f3d4062cce1cb5

Installation

Backend

  cd backend
  pip install -r requirements.txt
  python manage.py runserver

Frontend (App)

  cd app
  rm -rf node_modules
  npm cache clean --force
  npm install
  npm start

Usage/Examples

   run.bat

Backend

const axios = require('axios');
let data = JSON.stringify({
  "email": "[email protected]",
  "password": "123"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'http://localhost:8080/api/v1/accounts/login',
  headers: { 
    'Content-Type': 'application/json'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published