Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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 build

docker 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)