This repo contains an example "Hello World" TypeScript application that uses the TypeORM framework to connect to CockroachDB.
To run the code:
-
Create a Cockroach Cloud account as described in LINK TO BIZZLEBEE CHAPTER.
-
Create a database and a user and password as described in LINK TO BIZZLEBEE CHAPTER.
-
From the SQL client:
> GRANT ALL ON DATABASE databasename TO username;
-
If necessary, update the
ormconfig.jsonfile with the correct connection values. -
In your terminal, from the top of this project directory:
$ npm i $ npm start