A Instagram clone written in django :)
A Django social clone created with Django, Postgres, Redis, and Html/Css
- registering and logging to user account
- posting photo
- commenting and liking photos
- following system
- all CRUD operations on posts, comments, follows and likes with relevant permissions
- use Redis for count views of post
- use Postgres for backend databse
- gmail login
- save photos in Arvan cloud storage (like AWS)
- Restful Api
First you should make venv for this project. So in the main root of project you should type this command in your Terminal or Console:
python -m venv venv
Now you should activate your venv. So in the main root of project you should type this command in your Terminal or Console:
In Linux/macOS:source venv/bin/activateIn Windows:
venv/Scripts/activate
After activating venv you should install the requirements.txt packages. So type this command in your Terminal or Console:
pip install -r requirements.txt
Create .env file in project root and put this :
SECRET_KEY = 'Your SECRET_KEY' AWS_ACCESS_KEY_ID = 'Your AWS_ACCESS_KEY_ID' AWS_SECRET_ACCESS_KEY = 'Your AWS_SECRET_ACCESS_KEY' AWS_S3_ENDPOINT_URL = 'AWS_S3_ENDPOINT_URL' SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = 'Your SOCIAL_AUTH_GOOGLE_OAUTH2_KEY' SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'Your SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET'
First of all, please enter the following command in the Terminal or Console to make sure the project is configured correctly:
python manage.py check
You should see This message:
"System check identified no issues (0 silenced)."
If you see this message you should create your project database. So type this commands in Terminal or Console:
python manage.py makemigrations
python manage.py migrate
After creating the project database, you should run project. So type this command in Terminal or Console:
python manage.py runserver
Now copy/paste this address in your browser URL bar:
http://127.0.0.1:8000
Fork and develop are free for everyone. Be sure I'll check your push requests out.