https://github.com/linux08/typescript-node-rest-api
https://github.com/linux08/typescript-node-rest-api
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/linux08/typescript-node-rest-api
- Owner: linux08
- Created: 2019-03-25T15:26:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T00:52:22.000Z (about 3 years ago)
- Last Synced: 2025-01-15T11:15:11.924Z (about 1 year ago)
- Language: JavaScript
- Size: 346 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
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/