This project was made for a local election to gather information about voters and their most important topics using Angular CLI version 10.0.3.
It was made primarily for mobile use so PWA is supported.
As shown in the screenshots the pages/screens are made as following:
- Little introduction, some headings and program information 2
- Voters most important topic selection/survey and some personal infos
- Some options to submit some more information
- An overview about other peoples important topics
This projects consists of a frontend written in angular and a backend with expressjs.
The frontend can be hosted on a static page like Github pages after it has been build (npm run build
then copy the content from the build directory). For quick debugging, testing you can just do this:
git clone <this_project>
cd <this_project>
npm i
npm run start
It should now be accessible under localhost:4200
.
For the backend/api with docker compose:
cd api/
npm i
docker-compose up -d
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Contributions are welcome.