An open API service indexing awesome lists of open source software.

https://github.com/ariaspaez/webstore

Web store is a personal project in wich I apply all I have learned about framework Django
https://github.com/ariaspaez/webstore

django-application gitactions-workflow html5 mariadb python3 store

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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
git clone
```
Open project file:
```bash
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 -e MYSQL_ROOT_PASSWORD= -e MYSQL_DATABASE= -e MYSQL_USER= -e MYSQL_PASSWORD= -d mariadb:10.4
```
Where

* **** - *name of your docker*
* **** - *It is the password you want use in your user root of MariaDB*
* **** - *name of database*
* **** - *user name for the *
* **** - *password of *


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
```