Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neo9/n9-node-microservice-skeleton
A starter app to use n9-node-routing
https://github.com/neo9/n9-node-microservice-skeleton
Last synced: 1 day ago
JSON representation
A starter app to use n9-node-routing
- Host: GitHub
- URL: https://github.com/neo9/n9-node-microservice-skeleton
- Owner: neo9
- Created: 2018-04-08T17:33:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T12:37:30.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T13:01:43.093Z (almost 2 years ago)
- Language: TypeScript
- Homepage:
- Size: 1.81 MB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# n9-node-microservice-skeleton
A starter app to use [n9-node-routing](https://github.com/neo9/n9-node-routing) that easily start [routing-controllers](https://github.com/typestack/routing-controllers)
## Start it locally with
```bash
git clone https://github.com/neo9/n9-node-microservice-skeleton.git
cd n9-node-microservice-skeleton
docker-compose builddocker network create backend
docker run -it --network backend --name mongodb -d mongo
docker-compose up
```Then go to :
- `localhost:8080/`
- `localhost:8080/ping`
- `localhost:8080/documentation/`
- `localhost:8080/users`Before the first commit, do not forget to remove `src/conf/env` folder.
## Init your api (todo on init skeleton)
To set up your api you need to edit many files to remove/replace all skeleton references like project name, this documentation, etc.
- You have to edit `package.json`(name, description, version, author, repository, homepage, ports used 110000 and 10010 should be replaced by yours)
- Find all references to "todo on init skeleton" in repository and resolve them (We suggest you to start with `docker-compose.yml` that contains most of them)
- Clean `CHANGELOG.md` file
- Delete .github directory
- Edit `README.md`:
- Rename project to your api name
- Update documentation
- Update `Start it locally with` sections to update bash commands
- Finally, remove this section (Init your api)