Share your repls and programming experiences

← Back to all posts
🛒 Shopping Cart App | Greens 🛒
RYANTADIPARTHI (6018)

🛒 Shopping Cart App 🛒

Hi guys, i made a little shopping cart app, with a few similar features of a real shopping cart app.

Features

  • register
  • login
  • all items
  • add items to cart
  • remove items from cart
  • search items
  • search history
  • check out details
  • logout
  • remove all items from cart - new feature

Reminder

if you get something like csrf token 403 or something like that while registering or logging in or anythin, know that this is not an error. Just open the site in a new tab. Click open in the new tab, when you are about to visit this post. That's it. It will work then.

Feedback, and suggestions

Feedback and suggestions would be appreciated.


by the way, you know when you get those green banners on the top, when you do some task on the site? A fun thing is, you could drag those to the side, and they will disappear. Just hold them, and toss them to the sides.

Comments
hotnewtop
KassemT67 (3)

couldnt buy a girlfriend 2/10

[deleted]

@KassemT67 ah yes because that's totally not human trafficking if you buy a girlfriend

[deleted]

@UnusualUnit well apart from that i now know what human trafficking means, r/wooosh

EktaGupta1 (1)

I found it satisfying to buy items...
(A few minutes later...)
I made a script to buy items.
And left it running for the week.
Result:

oof

RYANTADIPARTHI (6018)

@EktaGupta1 wow! nice. But you might want to delete now. If it gets out of hand, the site may crash.

EktaGupta1 (1)

@RYANTADIPARTHI Ok, I'll do that...
(Rigorous clicking)

RYANTADIPARTHI (6018)

@BlaiseKern yeah, when it's in your cart, you can't really go to it from there. But I'll fix it.

SuigamiMitsokeL (150)

Hey I go by Suigami Mitsoke online. I’m open for friendships. My gmail is [email protected] I’m a bit of a hacker. I just hack securly and try to free surf the internet at school. Amongst other hacks. Which are not so good. I do Google hangouts and I have this docs. With a couple of friends. I have a YouTube channel with no content. I’m currently not able to access discord. And I can only do school hours or nights. Thx to my parents taking my phone and school iPad. Let me know if ya wanna chat. It be a honor to be your friend. Have a great day. Best of wishes!!!!
Peace out Love Suigami

peternielsen112 (38)

@SuigamiMitsokeL I don't know if you're new to Repl, but generally you would make your own post on the talk boards. Not that I'm a moderator. And I think it's awesome that you're going for free surfing of the school internet, it's a pain in the neck over here.

peternielsen112 (38)

@SuigamiMitsokeL sup. I'm busy at school/home but if you'd like to collab on Repl or github I'm open for that

codealt1 (3)

what's up @SuigamiMitsokeL let me just expose all of my email accounts lol

tussiez (1669)
  1. Where do you live? Why is $12 pizza "cheap" lol
    This is .. awesome!
RYANTADIPARTHI (6018)

@tussiez oh. I was just making up prices you know. Just guesses. Nothing real.

And thanks too!

codealt1 (3)

@RYANTADIPARTHI hey do you hash passwords

ch1ck3n (2082)

@codealt1 it's sqlite so it's stored in db.sqlite3 dummy

Korbindev (134)

it says no module found crispy forms

RYANTADIPARTHI (6018)

@KorbinVanette sorry server down. Do you want me to open it again?

Korbindev (134)

@RYANTADIPARTHI I just want to know how u made register/login

RYANTADIPARTHI (6018)

@KorbinVanette it's just django. It comes with django.

[deleted]

Add ads to this and you're done!

RYANTADIPARTHI (6018)

@GaneshaSharma oh. Thanks for the suggestion. But for ads, my site needs to be on google.

[deleted]

i did not know that @RYANTADIPARTHI

[deleted]

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

NENE2345 (3)

@RYANTADIPARTHI like the shopping app and l put a spongebob image becasue i tryed to put in a image

Teddy007 (1)

good job its a really cool program and you could really capitalize on this to do a lot more
@RYANTADIPARTHI

ch1ck3n (2082)

sees django

immediatly creates superuser

ShAdOwZxd (5)

Wait, how do you make the subpages without JavaScript? I mean, for example, if you press the login button, it takes you to the https://shopping-cart-app.ryantadiparthi.repl.co/login/ page. How do you do that? lol I'm a novice

RYANTADIPARTHI (6018)

@ShAdOwZxd it's just django stuff. i don't js for it.

ShAdOwZxd (5)

@RYANTADIPARTHI Oh, thanks. (lol I just researched my questions and got an answer for it)

codealt1 (3)

@ShAdOwZxd <a href="/login"></a>?

codealt1 (3)

Yeah @ShAdOwZxd window.location in js does stuff.

Also JS can be run in hyperlink: <a href="javascript:alert('yo')"></a>

peternielsen112 (38)

Also, do you have a favicon?

peternielsen112 (38)

@RYANTADIPARTHI an image that is like on the tab... for example the repl.it image...

<link rel="shortcut icon" type="image/jpg" href="Favicon_Image_Location"/>
RYANTADIPARTHI (6018)

@peternielsen112 oh. It's on the site, but not on repl.it tab.

LingWu1 (94)

I bought 100 brownies and just spammed cars so I guess I have like 743 lol

peternielsen112 (38)

@RYANTADIPARTHI Bruuuuuh you should make it so people can add items via post request etc? Is there a way to do that? It looks like you're using Django and I would collab if you wanted me to

RYANTADIPARTHI (6018)

@peternielsen112 you can post requests on repl.it for me. but in my other apps, you can post requests on the site itself.

peternielsen112 (38)

@RYANTADIPARTHI as in the user can post to the model...

[deleted]

This is actually really cool. It's feature packed and nicely made. It would be even cooler if you partnered up with some store or warehouse to make this actually buy things :D

SuigamiMitsokeL (150)

Hi I’m open for friendships @UnusualUnit

RYANTADIPARTHI (6018)

@UnusualUnit thanks, and thanks for the suggestions too.

breedarrenkamp (2)

I really love how the homepage of the website looks where you go to log in and register, it just looks beautiful

TheModerator (11)

We need another videx. I looked at what videx used to be and it was sorta cool.

RYANTADIPARTHI (6018)

@TheModerator yeah. But it crashed. If i want to make another one, i either have to make a new repl, and copy and paste all code, and start fresh with no videos, or delete all videos.

RYANTADIPARTHI (6018)

@peternielsen112 oh it's just one of my posts. I made an app like this, that's very similar to youtube. It's like a youtube clone. It was awesome. But too many videos were posted, and it crashed.