Giter Club home page Giter Club logo

store-front's Introduction

Storefront Backend Project

Storefront is a backend for online shopping.
This requires me to architect the database, tables, and columns to fulfill the requirements, create a RESTful API to be accessible to the frontend developer, with tested written and secure user information with encryption, and provide tokens for integration into the frontend.

Note: This project is project two from the Udacity full stack nano dgree program.

Table of contents

Overview

Users should be able to:

  • do all CRUD operations for all existing data shaps
  • request some dashboard services that execute some special queries to datbase

Folder Strcture

├───images
├───migrations
│   └───sqls
├───spec
│   └───support
└───src
    ├───helpers
    ├───middleware
    │   └───tests
    ├───models
    │   └───tests
    ├───routes
    │   └───api
    │       ├───order
    │       │   ├───handlers
    │       │   └───tests
    │       ├───product
    │       │   ├───handlers
    │       │   └───tests
    │       ├───services
    │       │   ├───handlers
    │       │   └───tests
    │       └───user
    │           ├───handlers
    │           └───tests
    ├───services
    │   └───tests
    └───utilities
        └───tests

Setup:

Stop✋: Before setup you need to take a look to REQUIREMENTS file that has the env file content that you need to create before setup the app

  • you have to install all dependencies from:
npm install
  • To build the project run:
npm run build
  • To run the migrations(creating all tables):
npm run migrate
  • For testing run:
npm run test

Note: If faluire happend within testing just run the blow script before testing again, that will reset the database for you.

npm run reset
  • To start the server you run:

    This will build the project before start

npm run start
  • Or you can run:

    This will run the server directly

node ./build/server.js

My process

Built with

  • Postgres for the database
  • Node.js
  • Express.js
  • Typescript
  • dotenv from npm for managing environment variables
  • db-migrate from npm for migrations
  • jsonwebtoken from npm for working with JWTs
  • Unit test with Jasmine
  • Formatting with Prettier and Eslint

Author

store-front's People

Contributors

ibrahim11elian avatar

Watchers

 avatar

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.