Coder Social home page Coder Social logo

webapp's Introduction

Web App

This is a functional web applicaiton that has several features:

  1. Submit a reading.
  2. Display the factorials of all readings ordered by timestamp.
  3. Automatically generate ID to readings.
  4. Search all submissions by the reading.

The backend is built with FastAPI and the frontend is built with React, partly following the tutorial by Eric Roby (https://www.youtube.com/watch?v=0zb2kohYZIM).

How to run the app

Note: Following steps are only tested on Mac.

1. clone the repository

git clone https://github.com/xuliu15/webapp.git

2. Set up virtual environment

Go to cd webapp

Then python3 -m venv myenv

3. Activate virtual environment

source myenv/bin/activate

4. Install packages

pip install -r requirements.txt

5. Activate backend

Go to cd FastAPI

Then run uvicorn main:app --reload, click the http link to see backend.

6. Activate frontend

Open a new terminal

Go to cd webapp/React/webapp

In case of sh: react-scripts: command not found, install a pacakge npm install react-scripts

Then run npm start , a webpage will automatically open.

How to run unit test

Open the folder webapp in VScode

Go to path cd FastAPI

Then run python3 -m unittest

webapp's People

Contributors

xuliu15 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.