Landing pages and website for Reach Vote app.
- Make sure you have python installed
- If you don't have virtualenv installed, install it using
pip install virtualenv
- From root directory of project run
virtualenv venv
- Run
source venv/bin/activate
- Install Flask library into this virtual environment
pip install flask
- Install Lektor static site management
pip install Lektor
From the root directory run lektor server
to start server
There are two ways to edit content on pages:
-
While the development server is running you can use the built-in admin interface. It can be accessed by clicking on the pencil symbol on a page or by manually navigating to
/admin/
-
You can edit the content in the
/content
directory directly. Content files are in folders respective to each page. the.contens.lr
file in/content
root is content for the home page.
If you want to define more specific content fiels to use in templates or components, you can define new fields in /models
.
Fields defined in .ini
model files will be visible and accessible when in Admin UI. More about data modeling for content here.
Reach.vote uses Netlify for deployment.
- Commits to
master
automatically trigger a build and deploy to the production site. - Preview PRs with Netlify deploy preview directly from the pull request in Github.
To generate a static static site direct, run $ lektor build --output-path [PATH]
from root directory.