A Social Networking platform for sharing ideas
Lightbulbs is a semester project that we created as part of our semester project for CS114. It is an idea sharing platform that brings like minded people together to share and discuss ideas.
Follow the steps below to get a local copy of the project up and running on your machine.
git clone https://github.com/hanif-ali/lightbulbs.git
Alternatively you can download the ZIP from the top of this page.
cd
into the directory and create a Virtual Environment by running
py -m venv env
To activate the virtual environment run
env\Scripts\activate.bat
in Command Prompt or env\Scripts\activate
in Windows Powershell.
To install the dependencies, run
pip install -r requirements.txt
Run cd lightbulbs
to move into the inner lightbulbs directory and run
python manage.py makemigrations
python manage.py migrate
Run the localhost using
python manage.py runserver
Since the database has not data yet, you will only be able to see the Home Pages. You will not be able to create a superuser through createsuperuser
because te app uses modified User Model. So you will need to add the pre-defined superUser model in UserFixture.json
using the steps mentioned in the next section.
The steps are same as above. Except, you may need to replace py
with python3
while creating the Virtual Environments. If your Python 3 executable is pointed to by python
, run that. Moreover, the virtual environment is activated by running env/bin/activate
.
To Load the SuperUser fixture, run
python manage.py loaddata UserFixture.json
The default Super User Credentials are:
- Username: root_user
- Password: root_password
You can change it from https://localhost:8000/admin
To load Dummy data for testing purposes, run
python manage.py loaddata DummyData.json
You can open DummyData.json
with your favorite text editor to see the data being added.
All Users added have the password dummy_password
If you want to contribute any feature to the application, fork this repository and Submit a pull request once you think it is ready to merge. Create issues to report bugs or suggest any form of changes. All forms of contribution are highly welcomed. :)