Skip to content

lantingchiang/Lookbook

Repository files navigation

Lookbook

Description

This is a platform that introduces a social aspect to online shopping. Users can follow friends and see what they shop for.

Installation

Make sure you have pipenv installed.

Setting up the Django Backend

  1. git clone https://github.com/lantingchiang/Lookbook.git to clone the repository to your local machine
  2. pipenv install to install all project dependencies
  3. pipenv shell to activate the virtual environment In the virtual environment...
  4. ./manage.py makemigrations
  5. ./manage.py migrate
  6. ./manage.py runserver and follow the url in the console

Ongoing development

  1. git pull origin master to get the most up to date code
  2. git branch [branchname] to create a new branch
  3. git checkout [branchname] to switch to new branch
  4. Start developing :)
  5. git push origin [branchname] to push local commits to remote repository
  6. Make a pull request and request 1 reviewer in order to merge to master

Documentation

API Routes

Route Request Method Parameters Response
"/api" GET NA Serves static page home.html
/api/products GET NA Renders all looks in reverse chronological order (feed page)
/api/products POST Allows creation of new product
"/api/products/" GET Shows detail view of product with given primary key
"/api/products/" PUT/PATCH Allows edits to product with given primary key
"/api/products/" DELETE Deletes product with given primary key

Accessing the admin site

See official documentation here

  1. Run ./manage.py createsuperuser to create credentials for logging into admin site
  2. Enter username and password in command line as prompted
  3. Start the server by running ./manage.py runserver
  4. Access the admin site at http://127.0.0.1:8000/admin/
  5. Log in and create model instances!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published