Skip to content

amitrrao/my-spaces-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-spaces-api

Description

This is an exercise for developing a REST based webservice. It uses Spring boot under the covers with Tomcat as its webserver. The default Tomcat port for this application is 4000. If this needs to be changed, you can modify application.properties file under the src/main/resources folder.

The API design follows a Builder pattern. There is a generic 'Item' instance which could be one of the following: (a) Space (b) Entry (c) Asset (d) User.

There are individual builders that build these specific type of instances at runtime and return the results. This design makes it extensible for building any custom type of 'Item' by writing a new builder for it.

All the data in this exercise is coming from a TestData class. In production, the data would ideally come from a database.

The application logs can be found at logs/exercise.log.

System Requirements:

Instructions to Build and Run:

  • Step 1. Clone the repo and pull down the 'master' branch.

  • Step 2. Navigate to the root folder called 'my-spaces-api'.

  • Step 3. Run the following maven command to build the jar: mvn clean package

  • Step 4. Run the application using the following command: java -jar ~/my-spaces-api/target/my-spaces-api-1.0.0.jar

The application is now running.

About

Coding exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published