Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Damian-Zuk/pollwizard
- Owner: Damian-Zuk
- Created: 2023-05-16T16:36:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-17T18:08:33.000Z (about 1 year ago)
- Last Synced: 2024-08-01T22:04:44.201Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```