By Faith Mwangi
A web-app that allows a user to register an account. A user can the post photos, follow other users, like posts and comment on posts.
*User-Admin: Faith-K *Password: 12345
##Working Features: ###Home Page ####Navbar *Home *Post *Profile - View profile and Logout features ####Posts *Like *Follow - Will redirect to PostDetails page. Follow Button on PostDetails page *Comment - Will redirect to PostDetails page. Follow Comment on PostDetails page *view all comments - Will redirect to PostDetails page. view all comments on PostDetails page
##Developer
Installing Python
Make sure that you have Python3 installed on your machine.
You may check your Python version by running:
$python --versionDepending on your installation you might have access to Python3 interpreter either by running python or python3.
$pythonNote that in this repository whenever you see python it will be assumed that it is Python 3.
Cloning Fork the repository and Git clone to your local machine. Access the file and run the program on the code editor, ubuntu, mac or windows terminal.
$git clone https://github.com/user-name/Instaclone/
$cd InstacloneCreating a Virtual Environment Inside the Instaclone directory create a virtual environment by running
$ pip install pip-envactivate the virtual environment by running
$ pipenv shellAdding dependencies Dependencies are listed in the requirements.txt file. To install all dependencies run the command using pip, pip3 or pipenv while in the virtual environment
(virtual) $ pipenv install -r requirements.txtAdding dependencies If using postgres
$ psql>>>CREATE DATABASE <databasename>;change settings to match psql database engine
If using sql, run project without psql
Migrate data
(virtual) $python3 manage.py makemigrations galleryTo perform an sql migrate use the version number provided after each make migration
(virtual) $python3 manage.py manage.py sqlmigrate gallery 0001(virtual) $python3 manage.py migrateRunning tests To run test cases:
(virtual) $python3 manage.py testRunning the app To run test cases:
(virtual) $python3 manage.py runserver- Django
- Bootstrap
- Heroku ###Languages
- Python
- CSS
- HTML
- Google Fonts
- Google Icons
- Cloudinary
To fix a bug or enhance an existing module, follow these steps:
- Fork the repo
- Create a new branch ('git checkout -b improve-feature')
- Make the appropriate changes in the files
- Add changes to reflect the changes made
- Commit your changes ('git commit -am 'Improve feature')
- Push to the branch ('git push origin improve-feature')
- Create a Pull Request
If you find a bug/error, kindly open an issue here Include your search query and the expected result.
If you'd like to request a new function, feel free to do so by opening an issue here Include sample queries and their corresponding results.
Future update to include a data base that stores information accessible when the application is closed and re-opened
MIT License Copyright (c) 2022 Faith Mwangi