Coder Social home page Coder Social logo

online-storefront-'s Introduction

Project Name

Storefront Backend

Description

The company stakeholders want to create an online storefront to showcase their great product ideas. Users need to be able to browse an index of all products, see the specifics of a single product, and add products to an order that they can view in a cart page.

Installation

To install all of the packages in a pack.json, use npm install

Usage

npm run dev to run the server with nodemon package npm run build to configure Ts with JavaScript npm run format to check prettier npm run lint:fix to check for errors and, if possible, fix them npm run migrate-up try testing using one of the fantastic packages, Jasmine. npm run test

Migrations

create your dev postgres database and your test postgres database here is the way to do that in command line or terminal CREATE DATABASE ..dev..; CREATE DATABASE ..test..;

Then the Migrations work use npm run migrate-up or db-migrate up

try Endpoint FOR users

start with /// app.post('/users', create) create new user with verifyAuthToken to use in others methods app.get('/users', verifyAuthToken, index)show all users app.get('/users/id', verifyAuthToken, show) get user by id

app.post('/users/login', authenticate)

try Endpoint FOR products

app.get('/products', index) show all products app.get('/products/:id', show) get product by id app.post('/products', verifyAuthToken, create) create new product

try Endpoint FOR orders

app.get('/orders', index) show all orders app.get('/orders/:id', show) get order by id app.post('/orders', create) create new order app.post('/orders/:id/products', verifyAuthToken, addProduct) add product to order

Usage packages

npm install prettier
npm install ESLint
npm install helmet
npm install jasmine
npm install super-test
npm install morgan
npm install pg
npm install jsonwebtoken
npm install nodemon

Road map

I'd like to make this project more accessible to users on store shelves in case I need to expand on the concept. so that i added some security packages like morgan,helmet

Authors and acknowledgment

I admire Udacity's educational efforts in achieving this level of accomplishment, and I am proud to be a member of the Udacity team.

I also appreciate your interest in my project.

Support

If you require further assistance, please contact me on Linkedin at https://www.linkedin.com/in/moelsherbiny

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

[Udacity]

online-storefront-

online-storefront-'s People

Contributors

moelsherbiny avatar

Stargazers

 avatar

Watchers

 avatar

online-storefront-'s Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.