Skip to content

LuisF3/freelance_project

Repository files navigation

freelance_project

Welcome to the freelance project!

This project was developed as the final test for the discipline SCC-504, object-oriented programming.

We were proposed to develop an platform that could connect an enterprise's short work proposal to students. We used some frameworks to accomplish our goal, such as Django (backend) and Tailwind(frontend). At first, we intended to use Django Rest and offer support to android too, but, due to limited time (about a month) and a whole graduation to worry, we sticked to learning base Django and Tailwind (we had basically no knowledge before this project).

Setting up a local server

  1. Set up and activate an virtual env:
    • "$ python3 -m venv venv" with this, your are setting the name of your venv to "venv"
    • "$ source venv/bin/activate"
    Now, your venvname should appear inside parenthesis at the beggining of your command line
  2. Install the dependencies on requirements-dev.txt with:
    • "$ pip3 install -r requirements-dev.txt"
    You may need to update your pip to 19.0.3 in order for it to install correctly. You may do it with:
    • "$ pip install -U pip" or something similar (We want to update pip3)
    All dependencies must be installed with pip3 (python 3.6.x+). If anything above goes wrong I strongly recommend you to delete your venv/ folder and start again.
  3. Run these commands:
    • "$ python3 manage.py makemigrations"
    • "$ python3 manage.py migrate"
    • "$ python3 manage.py runserver"
    Now, the terminal should tell you where the local server was setted up (localhost:8000/ by default). If you get any trouble with css, images, javascript or any other static file, try running:
    • "$ python3 manage.py collectstatic"
    These kind of problem is caused because Django uses different approaches to handle static files in development and deployment servers and, since we are using both (the project is beeing served in freel-project.herokuapp.com) not anymore, it gets confusing sometimes. Anyway, it should work if the tutorial was followed correctly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published