An open API service indexing awesome lists of open source software.

https://github.com/linux08/typescript-node-rest-api


https://github.com/linux08/typescript-node-rest-api

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

This is a simple CRUD project used to manage developer details

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

### Prerequisites

The following are required installed and set up before starting this app

```
Node.js
```
```
Git
```
```
Mongodb Database
```

### Installing

To start this app, perform the following step in order

```
1. Clone this repo to your machine
```

```
2. cd into the project
```

```
3. run "npm install" to install project dependencies
```

```
4. run "knex migrate:latest" to migrate files.Ensure you have knex cli installed on your machine
```

```
5. run "knex seed:run" to seed files.Ensure you have knex cli installed on your machine
```

```
5. Run the command "npm start"
```

## Built With

* [Express](http://www.express.io) - The node framework used
* [NPM](https://npm.org/) - Dependency Management
* [Postgres](https://www.postgresql.org/) - Relational database

* [Typescript](https://www.typescriptlang.org/)


Other usef link

* knex seed:run --- to seed file
* knex migrate:make create_users_table --- create table
* knex migrate:latest -- run the latest migration

* knex seed:run

learn knex migration and seeding -- https://gist.github.com/NigelEarle/70db130cc040cc2868555b29a0278261

https://devhints.io/knex

https://knexjs.org/