WebSite 2.0 for ACM develop by the Javerian Chapter
| Name | GitHub | Rol |
|---|---|---|
| Johan Sebastian Murillo Castillo | johan-smc | Backend developer |
| Juan Pablo Rodríguez Navarro | JuanPabloRN30 | Backend developer |
| Dorian René Moreno Vega | DorianMoreno | Backend developer |
| Daniel Beltrán Huertas | DanielBeltran2 | Backend developer |
| Camilo Serrano Reyes | camiloserr | Backend developer |
We recommend work on Linux, because it is easier install packages and frameworks; but, if you want to work on Windows you can do it.
Install:
$ curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bashInstall dependencies:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev gitadd this lines in .bashrc:
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
and then Update:
$ pyenv update
Install on pyenv
$ pyenv install 3.6.0Set Python 3.6.0 as global env
$ pyenv global 3.6.0For handle the environments variables
$ sudo apt install direnvAnd add the following line to .bashrc
eval "$(direnv hook bash)"
Create a file in the root of the project called .envrc this file contains the environment variables.
Add this lines to the file and replace the dummy values with real values.
export DATABASE_NAME=yourDatabaseName
export DATABASE_USER=yourDatabaseUser
export DATABASE_PASSWORD=YourDatabasePassword
this values should coincide with the credentials for the postgreSQL server in which you are running the database
.envrc file is blocked by default, run this command to enable it.
$ direnv allow$ git clone https://github.com/CapituloJaverianoACM/WebSiteAPI.git
$ cd WebSiteApi If you don't want to install the project's requirements on your computer, we are going to create a virtual environment to install them there.
We gonna use myvenv as the name of the virtual environment, but you can use the name that you prefer.
$ pyenv virtualenv <myvenv>$ pyenv local <myvenv>After activate your virtual environment your command line prompt should look like this
(myvenv) $If you want to exit from your virtual environment just get out of the project folder
Install the python packages described in the requirements.txt
$ pip install -r requirements/developement.txt$ python manage.py migrate --settings=acm_web_site.settings.development$ python manage.py runserver --settings=acm_web_site.settings.developmentAfter starting your local server you can test the webpage on http://127.0.0.1:8000/
This project is licensed under the GNU License - see the LICENSE.md file for details