/gallery-api

🎨 API for the gallery project

Primary LanguageTypeScript

Gallery API {

GitHub package.json version (branch) npm type definitions GitHub code size in bytes GitHub forks

const images_router: FastifyPluginAsync = async (app) => {
	app.addHook(
		'preHandler',
		async (request: FastifyRequest, reply: FastifyReply) => {}
	);
	app.get('/', list_images);
	app.get('/:_id', get_image);
	app.post('/', new_image);
	app.post('/:_id', update_image);
	app.delete('/', delete_all_image);
	app.delete('/:_id', delete_image);
};

🚀 Go to FRONT

Table of Contents

  1. Technologies
  2. About
  3. Set Up
  4. Commands Availables
  5. Making of
  6. Project tree
  7. Honorable mentions

Technologies

About

Back end of a gallery project to view, edit and delete images.

Set Up

To download and start the project you need to run the following commands:

# Clone the project into your local pc
git clone https://github.com/amargopastor/gallery-api.git

# Move into it
cd gallery-api

# Install all the necessary dependencies (you can check them in the package.json)
yarn install

Commands Availables

Once you've set up the project you're ready to run develop app. Here there are different options:

# Start the project in dev mode (runs typescript files)
yarn run dev

# Populate database
yarn run seed

Making of

Read all about how this project has been made right here.

Project tree

gallery-api
├─ .eslintrc.json
├─ .gitignore
├─ README.md
├─ package.json
├─ src
│  ├─ app.ts
│  ├─ bd.ts
│  ├─ config.ts
│  ├─ images
│  │  ├─ Image.model.ts
│  │  ├─ images.api.ts
│  │  └─ seed.images.ts
│  ├─ server.ts
│  └─ types
│     └─ types.ts
├─ tsconfig.json
└─ yarn.lock

Honorable mentions

🍍

⬆ back to top