Skip to content

A web-app that allows a user to register an account, post photos, follow other users, like posts and comment on posts.

License

Notifications You must be signed in to change notification settings

Miss-Faith/Instaclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

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.

Site

Instaclone

Setup Requirements

TM

*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

Prerequisites

Installing Python

Make sure that you have Python3 installed on your machine.

You may check your Python version by running:

$python --version

Depending on your installation you might have access to Python3 interpreter either by running python or python3.

$python

Note 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 Instaclone

Creating a Virtual Environment Inside the Instaclone directory create a virtual environment by running

$ pip install pip-env

activate the virtual environment by running

$ pipenv shell

Adding 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.txt

Adding 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 gallery

To 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 migrate

Running tests To run test cases:

(virtual) $python3 manage.py test

Running the app To run test cases:

(virtual) $python3 manage.py runserver

Technology Used

Frameworks

  • Django
  • Bootstrap
  • Heroku ###Languages
  • Python
  • CSS
  • HTML

Other resources

Development

Want to contribute? Great!

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

Bug / Feature 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.

To-Do

Future update to include a data base that stores information accessible when the application is closed and re-opened

Contact information

Faith Mwangi

Email

License

MIT License Copyright (c) 2022 Faith Mwangi

About

A web-app that allows a user to register an account, post photos, follow other users, like posts and comment on posts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published