Giter Site home page Giter Site logo

cmput404_project's Introduction

CMPUT404_PROJECT

CMPUT404-project-socialdistribution

CMPUT404-project-socialdistribution

See project.org (plain-text/org-mode) for a description of the project.

Installing Backend Dependencies

Note: Make sure to have python 3.6 or newer installed

Go into a terminal window in the root directory of this repository and run

cd server
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

// Then get a .env file from one of the project members
and put it in the same directory as `manage.py`

Helpful Backend Commands

If PostgreSQL is running, python3 manage.py runserver to startup the server.

To create an admin user: python3 manage.py createsuperuser.

Saving new python dependencies: pip freeze > requirements.txt.

Installing DB

Make sure you have install the required Python packages first above. The following commands are to be run within a virtual env.

Note: This is done on OSX

brew install postgresql

// To start PostgreSQL
brew services start postgresql

// To stop PostgreSQL
brew services stop postgresql

// To use the CLI
createuser -s postgres 
psql postgres

Then within the shell run any commands such as...
CREATE DATABASE myproject;
ALTER ROLE myprojectuser SET client_encoding TO 'utf8'; etc.

\q to quit

If you're making any DB changes, make sure PostgreSQL has started then

python3 manage.py makemigrations
python3 manage.py migrate

Repo Contributors / Licensing

Team Members:

Kean Weng Yap
Monica Bui
Ian Seng Wok
Amy Xiang
Hailan Xu

Project Creation Contributors / Licensing

LICENSE, README.md and project.org files are inherited Professor Abram Hindle's repo.

All text is licensed under the CC-BY-SA 4.0 http://creativecommons.org/licenses/by-sa/4.0/deed.en_US

Contributors:

Karim Baaba
Ali Sajedi
Kyle Richelhoff
Chris Pavlicek
Derek Dowling
Olexiy Berjanskii
Erin Torbiak
Abram Hindle
Braedy Kuzma

References

Connecting PostgreSQL to Django

Adding secrets to env file

Adding PostgreSQL to GitHub Actions Job

UUID Django Model Field Type

cmput404_project's People

Contributors

ianseng avatar bui1 avatar amy-xiang avatar hailanxyouknow 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.