Example application that uses SharpDomain library.
Available commands:
add-question [question text]
get-questions
get-result
login [pesel]
logout
register [pesel]
vote
Documented with Swagger.
There are two types of persistence.
Code is in project VotingSystem.Persistence.InMemory.
To enable PostgreSQL in application go to this file and:
- Comment line
#define IN_MEMORY_PERSISTENCE
. - Uncomment line
#define DAPPER_PERSISTENCE
. - Run database with Docker - instruction. It contains the docker-compose file of PostgreSQL database and instructions on how to run it. If you don't have Docker - install PostgreSQL on your computer if you like to clutter it up.
Code is in project VotingSystem.Persistence.Dapper.
- write a decent readme,
- EF Core persistence,
- configuration module.