Skip to content

Instantly share code, notes, and snippets.

@lifofernandez
Last active April 20, 2020 23:09
Show Gist options
  • Save lifofernandez/bd81898fa896e5bdca7feff4625167e1 to your computer and use it in GitHub Desktop.
Save lifofernandez/bd81898fa896e5bdca7feff4625167e1 to your computer and use it in GitHub Desktop.
Saleor Platform install
### Instalar y arrancar Salor Back-end
git clone https://github.com/mirumee/saleor.git
python3 -m venv saleor
cd saleor
source bin/activate
pip install -r requirements.txt
export SECRET_KEY='<mysecretkey>'
# Install postgresql
# Create a PostgreSQL user & database
# https://wiki.archlinux.org/index.php/PostgreSQL#Create_your_first_database/user
sudo -iu postgres
initdb -D /var/lib/postgres/data
exit # (Ctrl + D)
# Finally, start and enable the postgresql service.
systelctl start postgresql.service
sudo -iu postgres
createuser --interactive # salor
createdb saleor -O saleor
python manage.py migrate
npm install
# Instalar la interface Publica
# No se puede hacer npm run build-assets
# La documentacion de instalacin esta desactualizada
# https://github.com/mirumee/saleor/issues/5104#issuecomment-568552340
git clone https://github.com/mirumee/saleor-storefront
cd saleor-storefront
# git checkout v0.7.0 (no funcó)
# npm update (creo q la caga)
# API_URI=‘http://localhost:8000/graphql’ (creo q no hace falta)
npm install
cd ..
npm run build-emails
python manage.py pupulatedb
python manage.py createsuperuser
python manage.py runserver
# En el navegador: localhost:8000/graphql
### Interfaz de Admin
# en otra sesión
cd saleor/saleor-storefront
npm start
### Interfaz de Admin
# en otra sesión
cd saleor
git clone https://github.com/mirumee/saleor-dashboard
cd saleor-dashboard
# npm update (creo que la caga)
# git checkout v2.0.0 (no funcó)
export API_URI='http://localhost:8000/graphql/'
#export APP_MOUNT_URI='/dashboard/' # necesario para almacenamiento externo
npm install
npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment