We used postgresql for this project . Please install postgresql if doesn't exist.
-
Create database whatever you want to name it and place the name of the database in settings.py configuration file .
-
Create your own virtualenv using the command $ virtualenv <YOUR VIRTUALENV NAME
-
Activate your virtualenv using $ source /bin/activate
-
Install all requirement packagaes using $ pip install -r requirements.txt
It will install all the dependencies needed to run the application. If you see any error on the fly , please check the dependencies installed to install requirements dependencies.
At the very last you need to migrate schema and create tables in your database. To do so please run the following command:
$ python manage.py migrate
Once you done with successfull migration with the migrate command, you are done ! Now please run the server with django defaulf app server using the following command :
$ python manage.py runserver
Nice !! You are now able to see the application in your desired browser by the following address
All implemented with Django Rest Framework 3.2
For Portfolio the url is :
http://127.0.0.1:8000/portfolios/
For User the url is :
For Instrument the url is :
http://127.0.0.1:8000/instruments/
And for comments
http://127.0.0.1:8000/comments/
Cheers!!