backend server for portfolio website
options on making things ready
-
standalone (node.js)
- make a
.env
file and fill out the required variables - run build (only if you wish to run the production/ build version)
- run start script
- make a
-
docker
- cache
- api endpoints optimized by cache
- uses redis under the hood
- auth
- generate api key
- revoke api key
- emails
- send email using SMTP
- files
- upload & delete
- custom files store (factory)
- projects
- create, read, update, and delete operations
- testimonials
- generate testimonial key
- strategy to prevent spams
- create, read, and delete operations
- generate testimonial key
Script | Description |
---|---|
build | build project |
test | run test files |
start | start (must build first) |
start:dev | start on development mode (nodemon + swc) |
start:prod | start on production mode (must build first) |
format | format codes (prettier) |
lint | lint codes (eslint) |