Skip to content

sneyder05/SimplePortfolioServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Portfolio App

Simple Portfolio App is a basic example at how to use Serverless architecture for building a project.

About the app

Technologies

Time spent

This app took around 20 hours.

Deploy

1. Set up the environment

The following software will be necessary for running the app

2. Start the app

Note: Please make sure that you have enough space to install it, at least 2.5Gb.

Open a terminal at the root app folder and use one of the following options to start the app:

  1. Run the command docker compose up -d with which you'll be able to watch the output log.
  2. Run the command docker compose up (whitout -d flag).

Once you type the command, please wait for a while. The first time may take a few minutes.

3. Stop the app

Open a terminal at the root app folder and use one of the following options to start the app:

  1. Run the command docker compose down as long as you started the app with the previous option 1.
  2. Run the keys combination Ctrl + C as long as you started the app with the previous options 2.

Run whitout Docker

Make sure you have the same/higher version of the following tools:

  • node@12.x.x
  • npm@6.x.x

If you want run the app avoiding to use docker, please follow the steps below at the root app folder:

  • npm install -g serverless@1.83.3: Install Serverless framework.
  • npm install: Install all dependencies.
  • serverless dynamodb install: Install DynamoDb serverless plugin.
  • serverless plugin install --name serverless-s3-local: Install S3 serverless plugin.
  • npm run build: Check if there are errors.
  • npm start: Run the app.

Testing

Testing the code

Open a terminal at the root app folder and use the commands below:

  1. npm install
  2. npm test

Testing the app

Open the file /apidoc.html which is based on OpenApi3 to explore the API docs, then you can use any tools that you consider good enough for testing APIRest. Let me recommend you Postman(you can use the file ./postman_collection.json to import the requests and test them easily).

About

Simple Portfolio Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages