Welcome to the PetMe Project! This project is a Django-based web application for managing pet-related information and services.
git clone https://github.com/Lex-Ashu/petme.git
cd petme
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
brew install postgresql
brew services start postgresql
-
Access PostgreSQL CLI:
psql postgres
-
Create a New Role:
CREATE ROLE ashu WITH LOGIN PASSWORD 'ashu';
-
Create a New Database:
CREATE DATABASE petme_db;
-
Grant Privileges to the Role:
GRANT ALL PRIVILEGES ON DATABASE petme_db TO ashu;
-
Exit PostgreSQL CLI:
\q
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
Displays the state of the working directory and the staging area. It shows which changes have been staged, which haven't, and which files aren't being tracked by Git.
git status
Adds file contents to the staging area. You can use . to add all changed files.
git add <file>
# or to add all files
git add .
Records changes to the repository with a message describing what was changed.
git commit -m "commit message"
Amends the previous commit. This is useful for combining staged changes with the previous commit instead of creating a new one.
git commit --amend
Fetches and integrates with another repository or a local branch. This is useful for updating your local branch with changes made by others.
git pull origin <branch>
Shows the commit logs. You can see the history of commits in the repository.
git log
This project is licensed under the MIT License.