typetron / typetron Goto Github PK
View Code? Open in Web Editor NEWModern Node.js framework for creating fully-featured apps
Home Page: http://typetron.org
License: MIT License
Modern Node.js framework for creating fully-featured apps
Home Page: http://typetron.org
License: MIT License
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.
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. ๐
I want to contribute to this project. I need a step and help.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.