Créez une plateforme pour amateurs de Nutella
Accéder au site
Develop into branch develop. Thank to change if you want to see the progress work
$ git clone: https://github.com/SergueiNK/oc_projet_p8.git
$ sudo apt install libpq python3
$ pip install psycopg2
$ .venv/bin/pip install -r requirements.txt
cd .venv/Scripts/
pip install -r ../../requirements.txt
$ python3 -m venv .venv
$ source .venv/bin/activate
$ sudo psql -U postgres
postgres=# CREATE DATABASE your_database_name;
postgres=# \q
$ cd config/settings
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'your_database_name',
'USER': 'your_username',
'PASSWORD': 'your_password',
'HOST': '',
'PORT': '5432',
}
}
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py download_data
$ cd purbeurre/purbeurre_project && python manage.py runserver
Static files are into purbeurre/purbeurre_project/static/
$ npm run install .
Install all dependencies.
$ npm run build
Create dist directory that contains all build static files served.