Giter Club home page Giter Club logo

embroidery's Introduction

About

A simple mini-project that is a portfolio of embroidery designs. The server part is written using the net/http std lib. MongoDB is used as the database. Static image files are stored in one of the app dirs. Nuxt is used to write the client part. I'm not that good at writing frontend, so there may be some problems with it.

Images of the designs shown in the screenshot below are owned by EmbroEVCH. I'm not going to use them to make money. I really like their work.

screenshot

Run

For the app to fully work, you need to run the server and client parts, as well as the database. Use the commands provided below to achieve this.

Commands must be executed after providing environment variables. A list of them for each part of the app can be found in the .env.example file in the corresponding dirs.

Server

To run the server side, use the go run . command in the root dir of the project.

Client

To run the client side, first go to the web dir. In it, use the commands pnpm install and pnpm dev.

Database

You can deploy database in any way convenient for you, for example, use Docker for this. In the deploy dir there is a config file docker-compose.yml.

Routes

At the moment, only two routes are provided to receive data:

  • GET /designs - returns a list of visible designs along with their ids, names, and tags.
  • GET /design/{id} - returns an image byte array with content type image/jpeg.

embroidery's People

Contributors

orewaee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.