/cloud-store

API per il CloudStore

Primary LanguageTypeScriptMIT LicenseMIT

CloudStore project

Use FakeStoreAPI for developing a Cart Service.

The project is based on fastify and use axios for interacting with Fake Store API and mongodb as database. Use JWT though fastify-jwt for Authorization. The credentials Database is hardcoded for simplicity.

Docker

For running mongo locally, you can use docker for running the proper image. Something like:

docker run --name mongo --rm -d -p 27017:27017 mongo:5.0.6

Other images can be found at Docker Hub

Available Scripts

The project is created using Fastify-CLI.

In the project directory, you can run:

npm run dev

To start the app in dev mode.
Open http://localhost:3000 to view it in the browser.

npm start

For production mode

npm run test

Run the test cases.

Learn More

To learn Fastify, check out the Fastify documentation.