Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noureldin2303/e-commerce-with-typescript-nodejs-express
e-commerce with TypeScript, Nodejs, and Express
https://github.com/noureldin2303/e-commerce-with-typescript-nodejs-express
backend communityexchange ecommerce express javascript js jwt jwt-authentication jwt-token learn mean-stack mongodb node node-js nodejs server typescript
Last synced: 1 day ago
JSON representation
e-commerce with TypeScript, Nodejs, and Express
- Host: GitHub
- URL: https://github.com/noureldin2303/e-commerce-with-typescript-nodejs-express
- Owner: Noureldin2303
- License: mit
- Created: 2023-03-04T21:29:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-16T16:06:01.000Z (14 days ago)
- Last Synced: 2025-01-16T17:22:29.783Z (13 days ago)
- Topics: backend, communityexchange, ecommerce, express, javascript, js, jwt, jwt-authentication, jwt-token, learn, mean-stack, mongodb, node, node-js, nodejs, server, typescript
- Language: TypeScript
- Homepage:
- Size: 988 KB
- Stars: 10
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# e-commerce backend 🚀
### [![TypeScript](https://skillicons.dev/icons?i=ts)](https://skillicons.dev) [![Nodejs](https://skillicons.dev/icons?i=nodejs)](https://skillicons.dev) [![Express](https://skillicons.dev/icons?i=express)](https://skillicons.dev) [![MongoDB](https://skillicons.dev/icons?i=mongo)](https://skillicons.dev)
## Requirements
For development, you will only need Node.js and a node global package, Yarn, installed in your environement.
### Node
Just go on [official Node.js website](https://nodejs.org/) and download the installer.
Also, be sure to have `git` available in your PATH, `npm` might need it (You can find git [here](https://git-scm.com/)).### Yarn installation
After installing node, this project will need yarn too, so just run the following command.$ npm install -g yarn
---
## Install
$ git clone https://github.com/YOUR_USERNAME/PROJECT_TITLE
$ cd PROJECT_TITLE
$ yarn install
## Create a .env file in the root directory and add the following environment variablesPORT
MONGOS_CONNECTION_LINK
## Running the project$ yarn start
## Simple build for production
$ yarn build
---## End points
### Product
| Method | Endpoint | Description |
|:-:|:-:|:-:|
| GET | / | get all products |
| GET | /:id | get a specific product |
| POST | / | add new product |
| DELETE | /:id | delete product |
| PUT | /:id | update product |### User
| Method | Endpoint | Description |
|:-:|:-:|:-:|
| GET | / | get all users |
| GET | /:id | get a specific user |
| POST | /register | create new user |
| POST | /login | authenticate user |
| DELETE | /:id | delete user |
| PUT | /:id | update user |
| PUT | /change-password/:id | change password |---
## Collections
### User
```javascript
name: String,
email: String,
password: String
```### Product
```javascript
name:String,
description: String,
price: Number,
colors: Array,
sizes: Array
```