Project status: ACTIVE
Created 2 months ago by Federico EsparzaJoin Project
The AV Dashboard team
An internal dashboard for Agile Ventures analytics
$ pip3 install -r requirements.txt $ pip3 install -e . $ yarn install $ npx webpack
You will need to configure the database connection in several files before you can proceed. First, copy alembic.ini.example as so:
cp alembic.ini.example alembic.ini
Then you should edit the part of the file that says:-
[test_db] sqlalchemy.url = postgresql://postgres:pw@localhost:5432/av_dashboard_test [dev_db] sqlalchemy.url = postgresql://postgres:pw@localhost:5432/av_dashboard_dev [ci_db] sqlalchemy.url = postgresql://postgres@localhost/av_dashboard_test
In the newly copied file, you will want to insert the corresponding password for your database where it has 'pw', and the user where it has 'postgres'. In the event that your local database is on a different host or port, feel free to change 'localhost:5432'.
Next, you will need to copy the config.py.example file that is in the instance folder:
cp instance/config.py.example instance/config.py
In the newly copied file, you will want to edit the file:
POSTGRES_USER = 'user' POSTGRES_PASSWORD = 'password' POSTGRES_HOST = 'localhost' POSTGRES_PORT = '5432'
Insert the corresponding user, password and possibly host and port for your local database.
Next, copy the test.py.example and dev.py.example in the config folder as so:
cp config/testing.py.example config/testing.py cp config/dev.py.example config/dev.py
In most cases, you can just leave these files as they are, but in case you want a special name for your test or dev database, edit it appropriately. But if you do edit this default, also edit in the alembic.ini above.
After you have setup the database configurations above, create the databases like so with your postgresql server already running:-
Next, migrate the test and dev databases like so:
To see the dashboard in development mode, you will need to have done the database setup and then run the command to seed the database:
And then run the tests:
And navigate to the url displayed on the output.
No documents can be found for project AV Dashboard
#av-dashboard planning meeting - Thursday, 6th Dec at 05:00pm (UTC)
Latest Project videos
|#av-dashboard planning meeting - Thursday, 6th Dec at 05:00pm (UTC)||Federico Esparza||17:06 06/12|
|#av-dashboard planning meeting - Thursday, 29th Nov at 05:00pm (UTC)||Federico Esparza||17:04 29/11|
|#av-dashboard planning meeting - Thursday, 8th Nov at 05:00pm (UTC)||Federico Esparza||17:01 08/11|
|#av-dashboard planning meeting - Thursday, 25th Oct at 03:30pm (UTC)||Matthew Rider||15:30 25/10|
|#av-dashboard planning meeting - Thursday, 11th Oct at 03:30pm (UTC)||Matthew Rider||15:29 11/10|
|#av-dashboard planning meeting - Thursday, 4th Oct at 03:30pm (UTC)||Federico Esparza||15:31 04/10|
No IssueTracker Stories can be found for project AV Dashboard