Skip to content

Latest commit

 

History

History
102 lines (76 loc) · 3.16 KB

README.md

File metadata and controls

102 lines (76 loc) · 3.16 KB

geekstore-backend

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.

GitHub repo size GitHub language count GitHub forks Bitbucket open issues Bitbucket open pull requests

Current goals

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

Tech Stack

  • Node.js
  • Express
  • Typescript
  • Sequelize ORM
  • Relational Database:
    • mysql
    • postgres
    • sqlite
    • mariadb
    • mssql
    • db2
    • snowflake
    • oracle

Frontend Repository

Installation

  1. Create your own .env file according to example.env
  2. Dowload packages npm i
  3. Build npm run build
  4. Test server npm run dev

Recreating the database

  1. Delete dist folder
  2. npm run build
  3. npm run dbrebuild

Starter admin account

API Documentation

Deployed Server

The API documentation is temporarily available online for demonstration purposes:

GeekScript Backend Production API Docs

From SwaggerHub

SwaggerHub GeekScript API Docs

Running locally

  1. Run server with npm run dev
  2. Acess URL {host}:{port}/api-docs

For ease of use, we recommend the Swagger Viewer VS Code Extension. To start the extension:

  1. Open the swagger.json file located at src/api-docs.
  2. 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"

Project Team

Foto de Tiago Martins no GitHub
Tiago M. Speckart
Foto de Thiago Almeida
Thiago Almeida