Skip to content

Assets Management API is a platform for managing assets such as images and text. It allows users to store information about their assets, including categories, comments, and likes. The platform offers categorization and tagging features. The API is built using Node.js and Express.js, and uses MongoDB as the database.

Notifications You must be signed in to change notification settings

migsilva89/Assets-Management-API

Repository files navigation

Assets Management API

Assets Management API is a comprehensive platform designed to efficiently manage digital assets like images and text. The application empowers users to effortlessly store information related to their assets, including categorization, comments, and likes. The platform also offers advanced categorization and tagging features, making it easy to quickly locate assets based on specific search criteria. Built using Node.js and Express.js, the API leverages the power of MongoDB, an industry-leading NoSQL database, to provide a scalable and flexible data storage solution. The platform includes robust authentication and authorization capabilities, thanks to the use of JSON Web Tokens (JWTs). Additionally, the use of express-validator ensures that all user inputs are validated to prevent potential security vulnerabilities. Furthermore, the platform offers a chat feature, enabling users to communicate with each other in real-time. This feature provides a seamless collaboration experience, ensuring that users can easily and quickly interact with each other to accomplish their goals. Overall, Assets Management API offers a powerful and reliable solution for managing digital assets, providing users with a comprehensive platform that offers advanced features to make managing their assets easier and more efficient.

Acknowledgments

This project was developed as part of the final project for the Full-Stack Web Development course at Flag.pt. I would like to thank Fernando for providing guidance and support throughout the course. I would also like to thank my classmates for their feedback and suggestions during the development of this project.

As part of this project, I have also developed a front-end application, Assets Management Website that interacts with the API, allowing users to see the API in action and test its functionality.

You can check it out here: Assets Management Website.

Tech Stack

  • Node.js: for server-side JavaScript
  • Express.js: for building the API
  • MongoDB: for the database
  • Mongoose: for modeling data in MongoDB
  • Multer: for handling file uploads
  • Jsonwebtoken: for generating and verifying JWTs
  • Socket.io: for real-time communication
  • Morgan: for HTTP request logging
  • Swagger: for generating Swagger documentation from JSDoc comments, and displaying documentation in the API.

Development

To set up the development environment:

Prerequisites:

  • Node.js installed on your machine
  • MongoDB database collection created
  1. Clone the repository
git clone https://github.com/migsilva89/Dev-Assets-Pro-Api
  1. Navigate to the project directory:
cd Dev-Assets-Pro-Api
  1. To install the dependencies run:
npm install
  1. Create a .env file based on the provided env.default file at the root folder, and fill in the required environment variables.

  2. Seed the database with some initial data by running the following command:

npm run seed:users
  1. To start a local development server run:
npm start

The api will be available at http://localhost:5000

API Documentation

The API documentation is available at http://localhost:5000/api-docs when the server is running.

Testing the API on Swagger

  • Make sure the API is running on your local machine on port 5000. You can start the API by running the command npm start.
  • Open a web browser and navigate to http://localhost:5000/api-docs. This should bring up the Swagger UI.
  • You can use the Swagger UI to test the various endpoints of the API. Simply click on an endpoint to expand it, and then click on the "Try it out" button. Enter any required parameters and click on the "Execute" button to send the request.
  • The response from the API will be displayed in the "Response body" section.
  • You can also view the API documentation by clicking on the "Model" or "Schema" tabs. These tabs provide information on the data structures used by the API.

Tips or advice on how to improve are very welcome, thank you all!

Linkedin

About

Assets Management API is a platform for managing assets such as images and text. It allows users to store information about their assets, including categories, comments, and likes. The platform offers categorization and tagging features. The API is built using Node.js and Express.js, and uses MongoDB as the database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published