This repository is the final project for the Gama Academy Web Development course, featuring a minimum viable product (MVP) of a backend server that manages a REST API for an e-commerce platform.
Even with the job done, I still feel there's room for a lot of improvement. Now the main goals are:
- Refactoring to easen the testing process, mainly separating the business logic from the HTTP controllers
- Study how to implement a testing anvironment for current project version
- Use testing implementation to further refine this codebase
- Node.js
- Express
- Typescript
- Sequelize ORM
- Relational Database:
- mysql
- postgres
- sqlite
- mariadb
- mssql
- db2
- snowflake
- oracle
- Create your own
.env
file according toexample.env
- Dowload packages
npm i
- Build
npm run build
- Test server
npm run dev
- Delete
dist
folder npm run build
npm run dbrebuild
- email [email protected]
- pass admin123
The API documentation is temporarily available online for demonstration purposes:
GeekScript Backend Production API Docs
SwaggerHub GeekScript API Docs
- Run server with
npm run dev
- Acess URL
{host}:{port}/api-docs
For ease of use, we recommend the Swagger Viewer VS Code Extension. To start the extension:
- Open the
swagger.json
file located atsrc/api-docs
. - Choose one of the following options:
- Press
F1
-> Run Preview Swagger - Press
Shift + Alt + P
- Right click file in explorer panel and click "Preview Swagger"
Tiago M. Speckart |
Thiago Almeida |