Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
api-mvc-shop
Advanced tools
Readme
This program is a REST API that allows clients to add products and make orders in a NoSQL database. The database is hosted in MongoDB Atlas (Cloud) on a AWS server. This API is using the express architecture. Clients can access the API with a token system by using the jsonwebtoken (JWT) npm module.
Postman program have been used for for the client part tests (routes).
First, you must create an account on the mongoDB atlas website, and then create a cluster. Once created, you can now get the connection information from your cluster by clicking the "connect" button, choose the "Connect your Application" option and copy your "Connection String Only".
Installing node.js
brew install node
sudo apt-get install nodejs npm
https://nodejs.org/
git clone https://github.com/vreymond/api-mvc-shop
npm install
PORT=<your api port>
DB_CONNECT="<paste you connection string only mongoDB here"
JWT_KEY="<Json Web Token secret string to generate encoded tokens>"
// DB_CONNECT is like:
// "mongodb+srv://<username>:<password>@<cluster-name>.mongodb.net/<database-name>? retryWrites=true&w=majority
Start your cluster on mongoDB atlas
Configure your .env file (Api port, mongoDb string connection, and your jsonwebtoken secreft key).
Start the API:
npm start
All the routes have been tested using the Postman program.
You can access the API by using the URL http://localhost:<portAPI>/
(default port is 3000).
TO COMPLETE
Valentin Reymond
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
Restful API using MVC structure and NoSQL database
The npm package api-mvc-shop receives a total of 1 weekly downloads. As such, api-mvc-shop popularity was classified as not popular.
We found that api-mvc-shop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.