diff --git a/.drone.yml b/.drone.yml index 30a5b79..ff75895 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,9 +7,7 @@ steps: image: node:16 commands: - curl https://bun.sh/install | bash - - export BUN_INSTALL="$HOME/.bun" - - export PATH="$BUN_INSTALL/bin:$PATH" - - bun run ../test-server.js + - node ./test-server/node-http.js & - npm install - npm test @@ -22,8 +20,6 @@ steps: image: node commands: - curl https://bun.sh/install | bash - - export BUN_INSTALL="$HOME/.bun" - - export PATH="$BUN_INSTALL/bin:$PATH" - - bun run ../test-server.js + - node ./test-server/node-http.js & - npm install - npm test \ No newline at end of file diff --git a/README.md b/README.md index 22a14c5..5ecff80 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,19 @@ Run `npm run dev` This program fetch the data structure from others application, allowing it to assemble them later. +### With NodeJS + +```bash +node run ./test-server/node-http.js +``` + +The web server will be running at `http://localhost:5000` + +Configure the file `.env.development` with the url + + +### With bun + Install `bun` Inside `test-server` folder, run : @@ -27,7 +40,7 @@ Inside `test-server` folder, run : bun run http.js ``` -The web server will be running at localhost:5000 +The web server will be running at `http://localhost:5000` Configure the file `.env.development` with the url