Skip to content

A Svelte application which uses Cocktails API to get and filter cocktails around the world. For UI, it uses Tailwind CSS. Deployment script included using Docker.

Notifications You must be signed in to change notification settings

Apfirebolt/svelte-tailwind-cocktails

Repository files navigation

Cocktails DB in Svelte

Svelte Tailwind CSS Docker Nginx Vite

I had just completed a course on Svelte and wanted to create a basic app to test things I learned. This app is pretty much the result of it. It uses this popular API which gets all the cocktails around the world. You can filter it based on category, class, is alcoholic or not and more.

Features

  • Contains Homepage, a nested page to get random cocktail of the day, Cocktails page and a list page which has list of glass, categories and ingredients.

  • Can filter by first letter of the cocktail and ingredients. More filters can be added in future

Deployment

Inside the project you can find Dockerfile and Nginx conf file for deploying this application on any VPS using Docker. The build folder can also be directly deployed on websites like Vercel. Please follow the following steps to deploy on VPS using Docker.

  1. Build the image from the given Dockerfile, give it a intuitive name 'anime-dashboard'.
docker build -t svelte-cocktail . 
  1. Run the Docker container on port 4200 which is the default port used by Angular Applications.
docker run -p 4200:80 --name cocktail svelte-cocktail

Notes

I had fun while creating this app, might as well become my favorite JS framework at least for the time being. Looking forward to create more projects using it as well as giving SvelteKit a try. 😄

Screenshots

This is the main cocktails page of the application where you can search by first letter and by name.

Screenshot 1

If you click on random you'd be directed to the random cocktails page which would hit API end-point to get the random cocktails of the day.

Screenshot 2

About

A Svelte application which uses Cocktails API to get and filter cocktails around the world. For UI, it uses Tailwind CSS. Deployment script included using Docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published