-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from hell03end/dev/fix_master
Fix msater branch
- Loading branch information
Showing
51 changed files
with
1,178 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,15 @@ | ||
FPGAMarsohodCAD | ||
=============== | ||
CAD for automatically configuring FPGA "Marsohod" | ||
CAD for generating base configurations for FPGA "Marsohod". | ||
|
||
#### Requirements | ||
* Python >= 3.6 | ||
Structure: | ||
* `engine` - core logic of generating FPGA Quartus-compatible configurations. | ||
* `api_client.py` - simple rest-like API. | ||
* `cli_client.py` - simple cli client. Engine could also be used directly as python package (see `engine_example.py` form `examples` folder). | ||
* `web_client.py` - base web interface for solution. Written with legacy bootstrap and flask. TODO: should be overwritten as SPA with API usage. | ||
|
||
#### Examples | ||
See `engine_example.py` and `convert_example.py`. | ||
### Requirements | ||
* Python >= 3.9 | ||
|
||
FPGA Marsohod CAD web interface | ||
------------------------------- | ||
See `prepare.sh` or `prepare.bat` for more detailed instructions for Linux/Windows. | ||
|
||
#### How to run [linux]? | ||
```bash | ||
# first, clone repository | ||
git clone https://github.com/hell03end/FPGAMarsohodCAD | ||
|
||
# install dependencies | ||
pip install --no-cache -r requirements.txt | ||
pip install --no-cache -r engine/requirements.txt | ||
|
||
# set environment variables [use 'set' instead of 'export' for winfows] | ||
# export FLASK_APP=app.py | ||
export STATIC_PATH=.generated # where to store generated configs | ||
|
||
# [use '%STATIC_PATH%' for windows] | ||
mkdir $STATIC_PATH | ||
mkdir configs | ||
|
||
# create database | ||
flask db init | ||
flask db migrate | ||
flask db upgrade | ||
|
||
# compile translations (optional) | ||
flask translate compile | ||
|
||
# finally, run application | ||
flask run --with-threads | ||
``` | ||
|
||
*(optional) clean project directory from previous starts* | ||
```bash | ||
rm -r *.db migrations logs __pycache__ $STATIC_PATH | ||
``` | ||
|
||
You also need to create `.env` file to configure mailing. | ||
|
||
Example: | ||
```bash | ||
SECRET_KEY=<secret key> | ||
MAIL_SERVER=smtp.googlemail.com | ||
MAIL_PORT=587 | ||
MAIL_USE_TLS=1 | ||
MAIL_USERNAME="[email protected]" | ||
MAIL_PASSWORD=<password> | ||
``` | ||
|
||
<!-- ```bash | ||
# To get text run: | ||
pybabel extract -F babel.cfg -k _l -o messages.pot . | ||
# To add a translation run: | ||
pybabel init -i messages.pot -d web_client/translations -l ru | ||
# To update existing translations run: | ||
pybabel update -i messages.pot -d web_client/translations | ||
# To compile translations run: | ||
pybabel compile -d web_client/translations | ||
``` --> | ||
|
||
Read more on **[wiki](https://github.com/hell03end/FPGAMarsohodCAD/wiki)**. | ||
|
||
[`CHANGELOG`](https://github.com/hell03end/FPGAMarsohodCAD/wiki/Changelog) | ||
### How to run | ||
See `run.sh`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.