If you're cloning this template directly from git, please make sure you prepare your project by ensuring the following: Please use node v10.16 (LTS) to avoid compatibility issues.
- Create your
.env
file by runningcp .env-dist .env
. - Create logs directory at the root of the project
mkdir logs
. - Run
npm run install
.
If you are using em-microservice (RECOMMENDED) skip the previous section, since the package takes care of preparing the project.
To be able to register our project as a microservice we need to have 2 pieces running before we run the project itself:
- Start the service registry by running eureka server, this can be done by running
npm run eureka
. You can verify that eureka is running by entering this address in your browser:http://localhost:8080/eureka/
- Load the configuration files initiating our fake config server
npm run fake-config-server-start
, the fake files are included in the folderresources/fake-routes
at the root of the project.
Just run npm run local
and refresh the eureka page once, you should be able to see the application registered under "Instances currently registered with Eureka"