Git Product home page Git Product logo

lightbulbs's Introduction

Lightbulbs

A Social Networking platform for sharing ideas

for-cs114 made-with-python Django built-with-love dependencies license

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.

Installation Steps

Follow the steps below to get a local copy of the project up and running on your machine.

Windows


1. Cloning

git clone https://github.com/hanif-ali/lightbulbs.git

Alternatively you can download the ZIP from the top of this page.

2.Creating Virtual Environment

cd into the directory and create a Virtual Environment by running

py -m venv env

3. Activating the Virtual Environment

To activate the virtual environment run env\Scripts\activate.bat in Command Prompt or env\Scripts\activate in Windows Powershell.

4. Installing Dependencies

To install the dependencies, run

pip install -r requirements.txt

5. Running Database Migrations

Run cd lightbulbs to move into the inner lightbulbs directory and run

python manage.py makemigrations
python manage.py migrate

6. Start Up The Server

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.

Linux


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.

Loading Dummy Data

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

Contributing

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. :)

lightbulbs's People

Contributors

atttaskalyar avatar justanaverageotaku avatar zenocodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

saadz-khan

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.