acme's People
Forkers
codebyumaacme's Issues
Create something in product router to deal with spaces in show names
add search route to products to search by name - "$in" - should handle not an exact match. Also update the routes to deal with name change of "type" to category"
Update cart tests to put the createCart in a beforeEach. Can change the error handlers at the end of your tests to .then(null, done) - ex on line 111. OR use Chai-As-Promised to return the result of the it and you can get rid of the dones and mocha will handle the error if the promise fails
Update products routers to move the search code into a model static and call that (ie. Product.openSearch(req.query)). Also consider using {$regex:'xyz'}. Also consider updating our get all route to just do Product.find(req.query) instead of ones at the end of the file.
create tests for reviews model and routes
work on seeding the database
Run tests and fix code if needed for reviews
For all routes that use FindByIDAndUpdate - make sure we're not using pre-save hooks on that model as they won't work
Add to cart routes - need to add & delete products and, modify number of products from cart. Create separate schema?
Create user model and routes
Create shopping cart model and routes
Update user routes to use router.param to deal with findbyid and make our code DRY
Update product model to have a required length for category (see mongo.validate) - not going to do this now. just changed to not required
reviews model validations
Create product model and routes
Update review and cart models to rename user_id and product_id fields to just be user and product (because that's what they'll be once populated) - Not doing this right now
Run integrated tests
Add shipping address to cart model
updating pricing logic on Carts model to pull current price from Products on checkout
Run tests and fix code if needed for cart
Update /server/app/routes/index.js
Have one person add in all the required models!
Create/update checkout function in cart route. switch the cart status, etc. Including: clear out the products from the cart after it's added to the user's history, track original checkout date/time. Steps: switch status of active cart, store shipping address for that cart, create new cart with the current user as the associated user, update the current user's active cart field.
Create method on user model to get all prior purchases (order history) called retrieveHistory - only those with status NOT active
Create static route for the images folder
Create reviews model and routes
Rename type to category for product
Review User routes to make errors more meaningful (ex. 400 or 500 instead of 404)
Create basic auth routes
Need to update once we look at authentication
Review product and user models for validation requirements
Run tests and fix code if needed for user
Update paths in our routes for reviews to read clearer (/products/:id/reviews instead of /review/product/:id)
Update carts routes - for the put and post, refactor out some of the shared code. Consider using router.param and deal with the findIndex stuff. Also consider putting a lot of the long stuff into the model and reference the method in the route. , for the PUT, have the productID in the route. Update the delete route to use _.remove or _.pull? -
Update product seed file to change all dollar values into cents
Consider if we want show_name to be its own model?
Finalize database file
create tests for product model and routes
Update reviews router to include error handlers
Run tests and fix code if needed for auth
Update review test to put the create product and user in the beforeEach. May not want to test the create with all fields. For the rating between 1 and 5 and review length, throw error if it's successful.
create tests for cart model and routes
create integrated tests for all 4 models
Build recommendation engine (see workshop) - update hash when we process a checkout?
Update user and cart shipping addresses to be an object / its own schema
Run tests and fix code if needed for products
Work on Auth and Express sessions
Need to update existing auth routes based on updated express sessions
Add active cart field to User model
Create getCartHistory(user) function in the cart model that looks for all carts with that user._id and status!=active and returns them. This method is called by the method on the user model (works with an instance).
Cart model needs to handle guests, each order needs to have associated user or guest
create tests for user model and routes
Update products tests to use a beforeEach instead of creating products in each one. Also, review to ensure tests are valuable.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.