├── .gitignore ├── index.js ├── README.md └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const app = express() 3 | app.all('/', (req, res) => { 4 | console.log("Just got a request!") 5 | res.send('Yo!') 6 | }) 7 | app.listen(process.env.PORT || 3000) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # starter-express-api 2 | 3 | This is the simplest possible nodejs api using express that responds to any request with: 4 | ``` 5 | Yo! 6 | ``` 7 | 8 | ### Deploy it in 7 seconds: 9 | 10 | [![Deploy to Cyclic](https://deploy.cyclic.app/button.svg)](https://deploy.cyclic.app/) 11 | 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "starter-express-api", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/cyclic-software/starter-express-api.git" 12 | }, 13 | "author": "", 14 | "license": "ISC", 15 | "bugs": { 16 | "url": "https://github.com/cyclic-software/starter-express-api/issues" 17 | }, 18 | "homepage": "https://github.com/cyclic-software/starter-express-api#readme", 19 | "dependencies": { 20 | "express": "^4.18.2" 21 | } 22 | } 23 | --------------------------------------------------------------------------------