Trading is the name of the game.
The Vespucci API is designed to streamline and enhance e-commerce operations with a robust suite of tools. Whether you're building a new online store or integrating with an existing platform, Vespucci offers comprehensive functionalities to support various trading needs.
Find the repo here.
Watch our tutorial here.
- For JavaScript
- ES6 modules.
- Promises.
- Extensive object and array destructuring.
- Polymorphism for methods.
- Classes and constructors.
- Extended classes.
asyncandawaitexecutions.try&catchexecutions.- Structured error handling to prevent unexpected crashes.
console.table()to display SQL tables.
- For Sequelize
- Models.
Models.create()Models.destroy()Models.update()Models.findAll()Models.findByPk()Models.hasOne()Models.hasMany()Models.belongsTo()onDelete,foreignKey,autoIncrement, etc.- Hooks
- For Express.js
app.post()app.get()app.put()app.delete()app.Router()app.use()
- For Node.js
- NPM packages
- PG
- Dotenv
- Express.js
- Sequelize
process.envvariables.
- NPM packages
- For SQL
CREATESELECTUPDATEDELETEASfor column and table aliasesJOINLEFT,INTO,RIGHT, etc. to join even to the same table.INSERT INTOFROM,ON&WHEREsum()&count()GROUP BY&ORDER BY
Watch our tutorial here.
IMPORTANT | Vespucci isn't online yet, so you'll have to run it locally.
Once you have the repo on your computer after running git clone, open your command line. Make sure to open the Vespucci repo folder in your terminal. Use npm i to install all the modules needed to run Vespucci.
First clone:
$ git clone https://github.com/Rod-Freedom/C13-Vespucci.gitThen install the modules:
$ npm iThen create the DB by opening PostgreSQL in your terminal and running the schema file:
postgres= \i db/schema.sqlFinally, exit postgres and run the seeds, and you're ready to go.
$ npm run seedIMPORTANT | You need to have PostgreSQL installed in your computer to run Vespucci!
Watch our tutorial here.
IMPORTANT | Vespucci isn't online yet, so you'll have to run it locally.
Vespucci works as any RESTful API. To run it locally, open the Vespucci folder in your terminal, then type node server.js or npm start and hit enter.
$ npm startYou have GET, POST, PUT and DELETE methods for each route.
The available routes for /api, are:
- /tag
- /categories
- /products
When doing a PUT or DELETE, you'll have to add the ID parameter route (/id) to target a specific product, tag or category.
You may also do it with GET.
See the license for more details.
If you have suggestions or want to help with some improvements, you can write me by email.
The code was created by Rod's Freedom from some initial edX BootCamp code.

