Git Product home page Git Product logo

typetron's Introduction

Typetron

> **Note:** This project is a prototype in heavy development and not ready for production.

What is Typetron

Typetron is a modern web framework built for Node.js, written in Typescript, that allows you to build fully featured web applications. What of the key differences of Typetron is that its core packages were built from scratch in order to preserve the performance. (benchmark coming soon)

(check the tutorials page on how to get started with Typetron)

Features (developed/to be developed)

  • Routing
  • Controllers
  • Middleware
  • Query builder
  • ORM (Active Record)
  • IoC container
  • Services
  • ServiceProviders
  • Persistence (SQL, NoSQL)
  • Intuitive directory structure
  • Models (aka smart DTOs)
  • Forms & Validations
  • Utilities/helper functions
  • Easy debugging
  • Testing
  • Authentication
  • Error handling
  • CLI
  • Websocket
  • Migrations
  • Database seeding
  • Authorization
  • Sessions
  • Mailing
  • Worker threads
  • GraphQL
  • Cache
  • HTTP2
  • Automatic documentation generation for REST, Websocket and GraphQL
  • Modules
  • Logging
  • Internationalization (i18n)
  • Monitoring
  • Two-Factor Authentication (2FA)
  • OAuth
  • Views (HTML rendering)
  • HTTP3/QUIC
  • Error alerts (from the server directly on pc or phone, Slack or SMS)

Prerequisites

Getting started

git clone https://github.com/typetron/typetron my-awesome-project
cd my-awesome-project
npm install
npm start

Check http://localhost:8000

Documentation

Check the official website for more details.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

typetron's People

Contributors

alexandrucoarna avatar dependabot[bot] avatar ionellupu avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typetron's Issues

MySql connection error ENOTFOUND

Hi dear Typetron Team,
First of all, thank you for the challenge you're working. Huge peace of cake ! Wish you all the best in this adventure. ๐Ÿ‘

As I am a student, the challenge of using your framework as a backend maybe too ambitious. (Obviously, I hope not!)
But I take my chance.

After, reading most of your already well-documented website, I'm dealing with a connection error.
Maybe (Almost for sure) the problem is the connection details and the package name to use.

The full error message :

[INFO] 22:32:15 ts-node-dev ver. 1.1.8 (using ts-node ver. 9.1.1, typescript ver. 4.1.3)
Error: getaddrinfo ENOTFOUND localhost:3306
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
    --------------------
    at Protocol._enqueue (***\Projektor\Typetron\ProjektorBackend\node_modules\mysql\lib\protocol\Protocol.js:144:48)
    at Protocol.handshake (***\Projektor\Typetron\ProjektorBackend\node_modules\mysql\lib\protocol\Protocol.js:51:23)
    at Connection.connect (***\Projektor\Typetron\ProjektorBackend\node_modules\mysql\lib\Connection.js:116:18)
    at new MysqlDriver (***\Projektor\Typetron\ProjektorBackend\node_modules\@typetron\Database\Drivers\MySQL\MysqlDriver.ts:34:25)
    at mysql (***\Projektor\Typetron\ProjektorBackend\config\database.ts:14:22)
    at DatabaseProvider.register (***\Projektor\Typetron\ProjektorBackend\node_modules\@typetron\Framework\Providers\DatabaseProvider.ts:20:43)
    at ***\Projektor\Typetron\ProjektorBackend\node_modules\@typetron\Framework\Application.ts:52:33
    at Array.map (<anonymous>)
    at Application.registerProviders (***\Projektor\Typetron\ProjektorBackend\node_modules\@typetron\Framework\Application.ts:50:23)
    at Application.bootstrap (***\Projektor\Typetron\ProjektorBackend\node_modules\@typetron\Framework\Application.ts:101:20)
[ERROR] 22:32:20 Error: getaddrinfo ENOTFOUND localhost:3306in SQL: "undefined"

My WAMP server is online and I can access to the database with PhpMyAdmin.
Here is my .env file : (I kept the initial APP_SECRET value)

APP_SECRET = f+67Sn$#O?s,U;vnPnq}{eFaYuci8Rg7@L'8&RtmAp]^By]OdBOS:?fRh^`Jx^kC
DATABASE_DRIVER = mysql
#DATABASE = database.sqlite
 DATABASE_HOST = localhost:3306
 DATABASE_USER = root
 DATABASE_PASSWORD = 
 DATABASE = projektor

And here is my database.ts file :

export default new DatabaseConfig({
    entities: './Entities',
    synchronizeSchema: true,
    migrationsDirectory: 'Database/migrations',
    seedersDirectory: 'Database/seeders',
    //driver: process.env.DATABASE_DRIVER ?? 'sqlite',
    driver: process.env.DATABASE_DRIVER ?? 'mysql',

    drivers: {
        //sqlite: () => new SqliteDriver(process.env.DATABASE ?? 'database.sqlite'),
        mysql: () => new MysqlDriver({
            host: process.env.DATABASE_HOST,
            user: process.env.DATABASE_USER,
            password: process.env.DATABASE_PASSWORD,
            database: process.env.DATABASE,
        }),
    }
})

Thanks for your help.
Regards.

How to contribute

I want to contribute to this project. I need a step and help.

Thanks.

Any updates for beta release?

I have been looking for a typescript mvc framework. found typetron and nest.js. I find the coding pattern of typetron is more attractive. any updates on that? seems the last commit was 7 months ago. ๐Ÿ™„

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.