Skip to content

neo9/n9-node-microservice-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

n9-node-microservice-skeleton

A starter app to use n9-node-routing that easily start routing-controllers

Start it locally with

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)