- As a JSON REST API with endpoints GET /personal, GET /experience, GET /education, ...
- As a Flask CLI command that prints the data to the console
The CV data can be hard-coded in the code or read from disk. You do not need to integrate with any database. Please include a README file on how to start the REST API and how to execute the CLI command.
python3 -m venv venv
# activate virtual env
source venv/bin/activateThen install pipenv
pip3 install pipenvcopy .env.example .envpipenv will load and export .env file's data
# pipenv should install from pipfile.lock
pipenv installWill start project load data from fixtures
pipenv run start- First create mongo container
docker run --name mongodb -d -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=user -e MONGO_INITDB_ROOT_PASSWORD=pass mongodb/mongodb-community-server:latest- Export data from fixtures to mongo
pipenv run mongo_init- Run app
pipenv run startcd deployment && sh start-local.shTo run cli is possible in the following way
- To listing a all commands can run
flask --app src/app commands- To run one single command is possible in the following way
flask --app src/app commands experience