Coder Social home page Coder Social logo

jeremydavidson / sveltepress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coodos/sveltepress

0.0 0.0 0.0 1.95 MB

An amazingly well crafted express and svelte starter code

Shell 0.41% JavaScript 4.29% TypeScript 62.91% CSS 4.36% HTML 1.02% Svelte 27.01%

sveltepress's Introduction

Sveltepress


Amazingly crafted, flexible SvelteKit and Express.JS starter code which is enough to be the finisher code for others xD

Running

  • You can use ./.env.sample as a boiler to create your own environment config file (./.env).

And then with some docker compose magic, we are ready to roll!

$ docker-compose up

Where to find stuff :)

Service Default URL
Client (SvelteKit) localhost:5173
Storybook (Svelte Component Library) localhost:6006
REST API Server (Express JS) localhost:4269
REST API Docs (Swagger) localhost:4269
Server Metrics (Grafana) localhost:1337

Project Structure

  • Sveltepress is separated into 2 Yarn Workspaces, the client and the server.
  • The Client is the SvelteKit Front-End with Storybook setup to view and interact with UI Library components.
    • The ./client/src/lib folder holds all the UI components, helper functions, configs etc.
    • The ./client/src/routes folder is used by SvelteKit to serve the pages on the mapped routes.
  • The REST API Server is the Express.JS server with monitoring setup using Prometheus && Grafana && also Swagger API Docs which can be accessed via http://<Server IP>:<Server Port>/api/docs.
    • The ./server/src/config folder handles usage of environment variables in the server and setting up of connection to the PostgreSQL DB.
    • The ./server/src/controllers folder is where the business logic of the app handles.
    • The ./server/src/middleware folder is where the requests and responses of the server a processed before sending to client.
    • The ./server/src/models folder is where the tables to be used in the DB are setup.
    • The ./server/src/routers folder is where the routes of the server are defined.
    • The ./server/src/services folder is where the DB operations have been abstracted to allow for complete modularity and easy switching of DB if need be.
    • The ./server/src/utils folder is where the helper functions are stored.
    • The ./server/src/validators folder is where the validators are stored.

sveltepress's People

Contributors

coodos avatar sohamjaiswal avatar dependabot[bot] 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.