Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Damian-Zuk/pollwizard

Web application for creating polls and voting made using FastAPI and React.js
https://github.com/Damian-Zuk/pollwizard

Last synced: 5 days ago
JSON representation

Web application for creating polls and voting made using FastAPI and React.js

Awesome Lists containing this project

README

        

# pollwizard

Web application for creating polls and voting.

#### Libraries and frameworks used:
* FastAPI
* React.js
* Bootstrap
* SQLAlchemy


![App](https://i.imgur.com/tY9fCn4.png)

## Setup
#### Environment setup
* Install Python.
* Install Node.JS.
* Setup SQL database
* (optional) Create Python virtual environment.

#### Backend setup
* Add the following environmental variables to the ".env" file, replacing the placeholders with your specific values.
```ini
db_user =
db_pass =
db_host =
db_port =
db_name =

jwt_secret =
jwt_algorithm = HS256
jwt_access_token_time = 600
jwt_refresh_token_time = 86400
```

* Open your terminal and install python modules.
```
pip3 install -r requirements.txt
```
* Run the server.
```
uvicorn main:app --reload
```

* You can visit this URL to view auto-generated API documentation.
```
http://127.0.0.1:8000/docs
```

#### Frontend setup
* Open your terminal and install packages.
```
npm install
```

* Run the server.
```
npm run dev
```