Coder Social home page Coder Social logo

docs's People

Contributors

demensky avatar edbzn avatar fdaciuk avatar gustavofsantos avatar hannut91 avatar hosseinagha avatar jan-kacina avatar josselinauguste avatar jozefflakus avatar malef avatar marcinmiler avatar n-batrakov avatar nitaking avatar ronnetzer avatar simonwjackson avatar viglioni avatar virgiliolino avatar williammartin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docs's Issues

Often unclear where to `import` from

Many code blocks throughout the documentation don't include the import statements needed for the code to work. This means that just to try out some simple "hello world" exercises, I have to dig through the git repo (or elsewhere in the documentation) to figure out where to import things from. Usually it's not too hard, but it really interrupts the flow and gets in the way of learning the tool.

To improve this, I suggest either including the necessary import statements in all examples, or adding a section to the sidebar that lists all the components that can be imported from each package.

Examples with Testing

We need examples for how to test the endpoints.

For example here is what I did:

// src/server.ts
export const app = createServer({
    port: 3000,
    hostname: '127.0.0.1',
    httpListener,
});

// tests/e2e/health.test.ts
import request from 'supertest';
import {app} from '../../src/server';

describe('/health', () => {
    it('returns 200 OK', () => {
        return request(app.server).get('/health')
            .expect(200);
    });
});

`Getting started` example improvements

I was using your "hello world" "Getting started" example on https://docs.marblejs.com/overview/getting-started and found some minor things missing in the setup.

I created all files and copied the content from your example.
One described step is to copy the following to the package.json

"scripts": {
  "start": "ts-node index.ts"
}

Maybe you can change it to "start": "ts-node server.ts" as the file is not named index.ts in your example.

For some it might also be helpful to add the line:
yarn add @marblejs/core @marblejs/middleware-logger @marblejs/middleware-body rxjs

Please make docs.marblejs.com source available

Is your feature request related to a problem? Please describe.
There are typos in documentation website and I couldn't find any gh-pages branches or documentation repositories.

Describe the solution you'd like
Please make documentation text available for public contribution :)

Describe alternatives you've considered
Or if it already exists add an edit button with a link to documentation source.

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.