Shopping cart backend API based on express framework and mongoDB.
git clone https://github.com/youyaochi/ShoppingCart.gityarn install or npm installconfig/config.yml) if necessary, by default the uri is mongodb://localhost/testnpm run initdb (this action will delete collections named products, users and shoppingcarts)npm start, visit http://localhost:3000All of public APIs are documented using Swagger, please check http://localhost:3000/api-docs/.
To use shopping carts, users need to log in firstly by posting /users/authentication API with right usernames and passwords (initialized database comes with 3 users: alice:alice, bobo:bobo and admin:admin), when token is returned click the Authrize button and fill the blank with it, then click Authorize, you are logged in.
Content type
Image
Digest
Size
66.7 MB
Last updated
over 7 years ago
docker pull youyaochi/shopping-cart