The perfect network for the code academy: codefellows.network
Marc Fieser, Ben Shields, Ben Petty
The Code Fellows Network is a social media platform designed by and for use by students of Code Fellows. It is a social media tool to assist students in their studies as they progress through Code Fellows bootcamp. The site is designed to be easily extendable and the hope is that future classes will build upon this original project.
- Requirements
- Detailed Build Instructions
- Testing
- Future
python3.4 or newer
postgresql
This build is for Linux and OSX systems. Microsoft=unknown. python3.4 or newer postgresql
###Git: Clone thecodefellowsnetwork into your system.
git clone https://github.com/CodeFN/thecodefellowsnetwork.git
###Virtual Environments: We suggest developing in a virtual environment.
python3 -m venv env
To activate
source env/bin/activate
To deactivate
deactivate
You may have to deactivate and reactivate after making adjustments to environment variables.
###Environment Variables: The following environment variables are required.
DB_NAME
DB_USERNAME
DB_PASSWORD
DB_HOST
DEBUG
DB_PORT
ALLOWED_HOSTS
SECRET_KEY
GITHUB_APP_ID
GITHUB_API_SECRET
Export or add to env/bin/activate script. Some of these must match values from your database instance or Github Social Auth.
###Requirements.pip: Install reqiurements.
pip install -r requirements.pip
###Createdb:
createdb <DB_NAME>
To destroy database
dropdb <DB_NAME>
###Github Social Auth:
Set GITHUB_APP_ID and GITHUB_API_SECRET to the correct variables after signing up for social authentication through your github account. You must have a github account.
###Migrations:
Migrate database models for successful model rendering in your database instance.
./manage.py makemigrations
./manage.py migrate
###Runserver:
./manage.py runserver
cfn: main django app name
cfn/cfn: main django app
cfn/profile_cfn: profile/fellow app
cfn/posts: posts/comments/likes app
Files
cfn/cfn/tests.py cfn/profile_cfn/tests.py cfn/posts/tests.py
To run
./manage.py test
Not implemented... yet!
groups, assignments, direct messaging, code comparison, code analysis, design,