# Serverless folder structure

**URL:** <https://forum.serverless.com/t/serverless-folder-structure/5644>\
**Category:** Serverless Framework\
**Created:** [August 31, 2018, 2:47am UTC](https://forum.serverless.com/t/serverless-folder-structure/5644 "2018-08-31T02:47:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennethjaysone](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/kennethjaysone/32/2075_2.png) [@kennethjaysone](https://forum.serverless.com/u/kennethjaysone)\
**Post date:** [August 31, 2018, 2:47am UTC](https://forum.serverless.com/t/serverless-folder-structure/5644/1 "2018-08-31T02:47:06Z")

</div>

What is the recommended way to structure a serverless app using serverless-framework?  
And in any service / how do i organise multiple functions?

```auto
BlogApp (My project folder)
	|--users/ (this is the users service)
		|--.serverless/
		|--node_modules
		|--.gitignore
		|--index.js
		|--package-lock.json
		|--package.json
		|--serverless.yml
	|--posts (this is the users service)
		|--.serverless/
		|--node_modules
		|--.gitignore
		|--index.js
		|--package-lock.json
		|--package.json
		|--serverless.yml

```

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [August 31, 2018, 6:01am UTC](https://forum.serverless.com/t/serverless-folder-structure/5644/2 "2018-08-31T06:01:29Z")

</div>

I tend to have the same structure. Within each service I tend to add a folder called `src` for my own source code within which I have a folder for `functions` where my event handler functions go, `lib` for my abstracted code that my handlers will combine together to describe the business need and `test` for my unit tests. But you can do it anyway you like really.
