Git Product home page Git Product logo

saidalo1 / kun_uz_clone Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 25 KB

This project is a clone of the site kun uz. This project is made to learn elasticsearch + understand how tags work. You can use this project for educational purposes. The author is not responsible for your actions!

License: MIT License

Makefile 0.86% Python 99.14%
django django-rest-framework elasticsearch kunuz python python3 tags

kun_uz_clone's Introduction

Django online shop API.


It is an online store API system built on Django Rest Framework. It contains everything you need to add products and use as a quality store.

Screenshots

Swagger (blogs, elastic search)

App Screenshot

Blogs

App Screenshot

About this Project:

I'll be happy if you provide any feedback or code improvements or suggestions.

Connect with me at:

     

📫 How to reach me: [email protected]

Some technical information:

  • Django - 4.1.7
  • Django Rest Framework - 3.14.0
  • Django Ckeditor - 6.5.1
  • Django Environ - 0.9.0
  • Django Elasticsearch Dsl Drf - 0.22.5
  • pytest-django - 4.5.2

To Install:

Cloning the Repository:

$ git clone github.com/Saidalo1/kun_uz_clone.git
$ cd kun_uz_clone

Installing the environment control:

$ pip install virtualenv
$ virtualenv env

Activating the environment:

on Windows:

env\Scripts\activate

on Mac OS / Linux:

$ source env/bin/activate

Installing dependencies:

$ pip install -r requirements/base.txt

Create a .env file on ecom folder (/root/.env) setting all requirements without using space after "=".

Copy and paste on our .env file:

# Debug
DEBUG=TRUE_OR_FALSE

# Secret key
SECRET_KEY=YOUR_SECRET_KEY

# Database settings
DATABASE_NAME=YOUR_DATABASE_NAME
DATABASE_USER=YOUR_DATABASE_USER
DATABASE_PASSWORD=YOUR_DATABASE_PASSWORD
DATABASE_HOST=YOUR_DATABASE_HOST
DATABASE_PORT=YOUR_DATABASE_PORT

Installing MAKE:

On Mac OS & Linux:

sudo apt install make
sudo apt install build-essential

On Windows:

1. Press Win + X keys together to open the Power menu.
2. Select Windows Powershell(Admin).
3. Type the command ‘Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))' and press Enter
4. Downloads and installs chocolatey as available from their official source: https://community.chocolatey.org/courses/installation/installing?method=installing-chocolatey#powershell
5. Type choco to verify if the installation worked.
6. Now, type the command ‘choco install make‘ to install Make.
7. Go to the installation directory C:\Program Files(x86)\GnuWin32\ to confirm the installation worked.

Install ElasticSearch:

Linux:

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.6.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.6.2-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-8.6.2-linux-x86_64.tar.gz.sha512 
tar -xzf elasticsearch-8.6.2-linux-x86_64.tar.gz
cd elasticsearch-8.6.2/ 
./bin/elasticsearch

Windows:

https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.6.2-windows-x86_64.zip

cd C:\elasticsearch-8.6.2
.\bin\elasticsearch.bat

Type this command to make migrations and migrate:

make mig

Create a super user:

$ make admin

Finishing running server:

$ python manage.py runserver

To test project:

$ pytest

Contributing

You can send how many PR's do you want, I'll be glad to analyse and accept them! And if you have any question about the project...

📫Email-me: [email protected]

  

Thank you!

License

NPM   

This project is licensed under the MIT License - see the LICENSE.md file for details.

kun_uz_clone's People

Contributors

saidalo1 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.