This repo also contains the example todolist app.
This template contains many built in feature such as moment (to deal with datetime, localization, built in functions that allow you to retrieve user's IP details and many more.). You can also build your frontend code using single command (currently only supported for vue). Highly customizable.
Note: The root of this project is placed at https://github.com/Strefio/Beymax (currently not open sourced)
- Python >= 3.6+
- Database setup (sqlite, mysql, postgresql, etc.)
- NodeJS >= 11
- Redis
webdriver- required if you want to runflask testcommand
In order to work on this project on your machine, you can follow the instructions below
-
Fork this repository
-
Open your terminal and
cdto your~/your_folderfolder -
Clone your fork into the
~/your_folderfolder, by running the following command replace your username into {your_username} slot:git clone git@github.com:{your_username}/Pandoru_template -
CD into the new directory you just created:
cd Pandoru_template -
Run the
install.shbin script
If your machine has satisfied with all the requirements listed above, skip this step./bin/install.sh
In case you encounter errors such as
command not foundorpermission deniedyou may need to follow these steps to make the file executable in order to solve your problem:sudo chmod +x ./bin/install.sh ./bin/install.sh
-
Run
setup.shbin script
If you already run theinstall.shscript, skip this step./bin/setup.sh
In case you encounter errors such as
command not foundorpermission deniedyou may need to follow these steps to make the file executable in order to solve your problem:sudo chmod +x ./bin/setup.sh
You may change the configuration of the project in ./app/config.py.
To run all the tests, you might use the following command:
$ flask test
This command will drop all tables and rerun the database
$ flask db:fresh
$ flask db:connection
$ flask db:migrate
$ flask db:fresh
$ flask db:connection
$ flask node
$ flask test
$ flask serve
$ flask key:generate
$ flask config:mail
$ flask config:localization
