Coder Social home page Coder Social logo

ariaspaez / webstore Goto Github PK

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

Web store is a personal project in wich I apply all I have learned about framework Django

Python 78.46% HTML 21.17% Shell 0.37%
django-application mariadb store python3 gitactions-workflow html5

webstore's Introduction

WebStore

Web store is a personal project in wich I apply all I have learned about framework Django

How to install:

Clone the repository:

git clone <link-http-to-clone-this-project>   

Open project file:

cd WebStore

Install python3 and pip3, then create virtualenv:

virtualenv venv -p python3

Run virtualenv.

source ./venv/bin/activate

Install dependences:

pip3 install -r requirements.txt 

Configurations:

There is a .env.example fileinto webStorePlan folder. You must copy and paste it in the same path with the next name: <.env>

Here you can config the secret_key and another variables of project

Database

This project use MariaDB:10.4. You can create a docker for it.

Pull the image:

docker pull mariadb:10.4

Create your docker:

docker run -d -p 3306:3306 --name <docker_name> -e MYSQL_ROOT_PASSWORD=<password_root_user> -e MYSQL_DATABASE=<database_name> -e MYSQL_USER=<database_user_name> -e MYSQL_PASSWORD=<database_user_password> -d mariadb:10.4

Where

  • <docker_name> - name of your docker
  • <password_root_user> - It is the password you want use in your user root of MariaDB
  • <database_name> - name of database
  • <database_user_name> - user name for the <database_name>
  • <database_user_password> - password of <database_user_name>

    Run your docker

    Makemigrations, migrate and superuser:
python3 manage.py makemigrations
python3 manage.py migrate

Next line will ask you a user_name and user_password:

python3 manage.py createsuperuser

Now, you can run the app:

python3 manage.py runserver

webstore's People

Contributors

ariaspaez 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.