Skip to content

JennyRemolina/api-projex

 
 

Repository files navigation

# Projex Application Programming Interface (API)

Build Status Coverage Status

Application Programming Interface built under Django Rest Framework. It's used in ProjeX app. Tested and deployed using Travis CI framework

Initial Requirements

Quickstart

Run in development environment

  1. Open set-env.sh file and modify it as follows:

        # Change this
    
        source virt-env/bin/activate
        export DJANGO_DB_NAME="api-projex"
        export DJANGO_USERNAME="julio"
        export DJANGO_PASSWORD="12345678"
        export SECRET_KEY='&o0ff+%&_th__u0!7uu82h6wsq)ac%bkh&81$+l#@77)01v)fk'
    
    
        # ..to this
    
        source virt-env/bin/activate
        export DJANGO_DB_NAME="YOUR DATABASE NAME"
        export DJANGO_USERNAME="YOUR DATABASE USERNAME"
        export DJANGO_PASSWORD="YOUR DATABASE PASSWORD"
        export SECRET_KEY='&o0ff+%&_th__u0!7uu82h6wsq)ac%bkh&81$+l#@77)01v)fk'
    
  2. Set permissions to set-env.sh with sudo chmod +777 set-env.sh. In case you don't have sudo, then just execute each script line manually in your terminal.

  3. Activate virtual environment and export environment variables using source set-env.sh.

  4. Install all required packages using make freeze.

  5. Run migrations using python manage.py migrate.

  6. Run the testing python manage.py test -v 2.

  7. Start app using python manage.py runserver.

About

Backend development of Projex App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 99.1%
  • Other 0.9%