Last active
January 22, 2017 15:49
-
-
Save anabastos/b98af2fd2cc881d14349faff7f4ec100 to your computer and use it in GitHub Desktop.
Como instalar o ambiente do projeto no UBUNTU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copie e cole esses comandos no terminal | |
Instalar python e pip(instalador do python): | |
sudo apt-get install python | |
sudo apt-get install python-pip | |
Instalar o banco de dados mongo: | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
sudo apt-get install -y mongodb-org | |
Clonar nosso repositorio do git: | |
git clone https://github.com/3-lambda/blog-preco.git | |
cd blog-preco | |
Instalar dependencias do projeto: | |
pip install -r requirements.tx | |
Rodar: | |
abrir dois terminais e rodar cada um em um terminal | |
Um vai deixar rodando um banco de dados local e outro vai servir o nosso projeto no localhost | |
mongod | |
python app.py | |
Supostamente ao entrar no localhost:5000 com o navegador vai ser o sitezinho | |
ver leads: | |
localhost:5000/leads | |
inserir conteudo: | |
localhost:5000/editor | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment