Giter Site home page Giter Site logo

mmsh-server's Introduction

hello:

do you want an easiy way to make a server and then just add a bunch of micro services and modify the front-end to your liking.

this project provide the ability to do that,

and on the top of that its SVELTE and TYPESCRIPT yay.

So lets talk about the tree of this project:

config folder:

holds all configuration that is generaly used. and any plugin can access it.

plugins folder:

holds all the plugins, and each plugin has his own homesweethome if he wants a space to work with

Server folder:

it holds the server and how each plugin is being called (i'm still working on it sooo its a bit hard tbh).

front-end/src:

this is where you do your front-end magic

front-end/public:

this is where it outputs the bundle.js and you gotta make the index.html for each page (still working on it)

How do i run it with the default plugin:

All you have to do is go to google captcha and create a project then get the site token and the key make a new .env file and use .env.example as refrences

then just run the command: npm run server

npm run server-dev: for typescript compiling npm run f-dev: for front-end compiling

how do i get started:

First:

add the plugin or use npm i to do so

Second:

in the server/src/index.ts

get the plugin and make a new object of it with the settings that you want to use with it. within the loop with adding casing the name then just use

server.use("the plugin here","the plugin config file", "global settings")

config/extention.json avaliable example:

{
    "base":"/",

    "front_end_div_dir":"front-end/src",
    "front_end_out_dir":"front-end/public",

    "plugins": [
        {
            "maindir": "compiler",
            "input": {
                "file": "main.ts"
            },
            "output": {
                "file": "./js/bundle.js"
            },
            "config": {}
        }
    ]
}

mmsh-server's People

Contributors

haouarihk 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.