GithubHelp home page GithubHelp logo

saude-em-jogo's Introduction

Saúde em Jogo

Setting up on Arch:

sudo pacman -S python-pip

Check pip version:

pip -V

Should be on python3.*

Install virtualenv as user (non-root)

pip3 install virtualenv --user

Check if virtualenv is working

virtualenv --version

If you have any troubles here, add to $PATH ~/.local/bin/ or install virtualenv as root (works but it is not recommended)

Create a virtualenv wherever you want, this DOES NOT GO TO GIT

virtualenv env

Now you can activate your env with

source env/bin/activate

Let's install everything in our venv

pip install -r requirements.txt

Just run!

python3 manage.py runserver

Setting up PostgreSQL

You can use whatever database you want, really. I'll explain how to use PostgreSQL, since i'm using it right now.

sudo pacman -S postgresql
sudo su postgres -l
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/'
exit or ctrl+d
sudo systemctl enable --now postgresql.service
sudo -i -u postgres psql
create database saude_em_jogo;
create user myuser with encrypted password 'mypass';
grant all privileges on database saude_em_jogo to myuser;
ctrl+d until exit all

P.S: These are my configs, feel free to do yours

saude-em-jogo's People

Contributors

olivatooo avatar

Watchers

James Cloos 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.