This is a platform that introduces a social aspect to online shopping. Users can follow friends and see what they shop for.
Make sure you have pipenv
installed.
git clone https://github.com/lantingchiang/Lookbook.git
to clone the repository to your local machinepipenv install
to install all project dependenciespipenv shell
to activate the virtual environment In the virtual environment..../manage.py makemigrations
./manage.py migrate
./manage.py runserver
and follow the url in the console
git pull origin master
to get the most up to date codegit branch [branchname]
to create a new branchgit checkout [branchname]
to switch to new branch- Start developing :)
git push origin [branchname]
to push local commits to remote repository- Make a pull request and request 1 reviewer in order to merge to master
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 |
See official documentation here
- Run
./manage.py createsuperuser
to create credentials for logging into admin site - Enter username and password in command line as prompted
- Start the server by running
./manage.py runserver
- Access the admin site at http://127.0.0.1:8000/admin/
- Log in and create model instances!