API for generating resumes easily
Explore the documentation
View Demo
·
Report a Bug
·
Request a Feature
-
Clone the repository
git clone https://github.com/nelsonacos/resume-creator-api.git
-
Open the command line and navigate to the project folder
cd resume-creator-api
-
Create the
.env
file to configure the environment variables# Unix System cat .env.example > .env # Windows System copy .env.example .env
-
Configure environment variables
# Use a new secret key in production DJANGO_SECRET_KEY="django-insecure-8ps&h4snq(-)$$@f-3vhp&dk7)hf@dnd19(4q_a+im^926hxu_" # Will be False if set to an empty string DJANGO_DEBUG="" # Postgres configuration DATABASE_HOST=db # should be the name defined in the docker-compose.yml file for the postgres service DATABASE_USER=postgres DATABASE_PASSWORD=password DATABASE_NAME=resume
docker-compose build && docker-compose up
Open http://localhost/resume/api/v1/ with your browser to see the result.
Visit the documentation http://localhost/resume/docs/
-
Update package repositories
sudo apt update
-
Install the package software-properties-common
# allows adding a PPA (Personal Package Archive) repository needed to install Python 3 sudo apt install software-properties-common
-
Adds the deadsnakes PPA repository
# contains different versions of Python sudo add-apt-repository ppa:deadsnakes/ppa
-
Update the package repositories again to make the new repository available.
sudo apt update
-
Install python3
sudo apt install python3
-
Verify the python installation
python3 --version
Nota: These steps may vary depending on the operating system you are using. If you are using another operating system, such as macOS or Windows, the steps to install Python 3.10 may be different.
-
Create a postgres container
docker run --name db -e POSTGRES_PASSWORD=password -d -p 5432:5432 postgres
-
Access the container interactively
docker exec -it db psql -U postgres
-
Create a new database
CREATE DATABASE resume;
-
List databases
\l
-
To exit the Postgres
\q
-
Clone the repository
git clone https://github.com/nelsonacos/resume-creator-api.git
-
Open the command line and navigate to the project folder
cd resume-creator-api
-
Create the
.env
file to configure the environment variables# Unix System cat .env.example > .env # Windows System copy .env.example .env
-
Configure environment variables
# Use a new secret key in production DJANGO_SECRET_KEY="django-insecure-8ps&h4snq(-)$$@f-3vhp&dk7)hf@dnd19(4q_a+im^926hxu_" # Will be False if set to an empty string DJANGO_DEBUG=True # Postgres configuration DATABASE_HOST=localhost DATABASE_USER=postgres DATABASE_PASSWORD=password DATABASE_NAME=resume
-
Create a virtual environment (optional but recommended)
python3 -m venv venv
-
Activate virtual environment
# Unix System source venv/bin/activate # Windows System source venv/Scripts/activate
-
Install
pip
andpip-tools
on the virtual environmentpython -m ensurepip --upgrade && pip install pip-tools
-
Install the dependencies
pip-sync requirements-dev.txt
-
Apply the database migrations
python manage.py migrate
-
Install the git hook scripts
pre-commit install
-
Start the project
python manage.py test && python manage.py runserver
Open http://localhost:8000/resume/api/v1/ with your browser to see the result.
Visit the documentation http://localhost:8000/resume/docs/
If you want to contribute to this project, follow these steps:
- Fork the project
- Create a branch for your contribution (git checkout -b feature/AmazingFeature)
- Make the necessary changes
- Commit your changes (git commit -m 'Add some amazing feature')
- Push your branch (git push origin feature/AmazingFeature)
- Open a Pull Request in this repository