This project was built with the goal of learning TypeScript + Jest + ExpressJs. It should be splitted into microservices, but since it will be only for personal use, it's going to be a monolythe. The SelfAPI is a simple RESTful API, which contains a variety of endpoints, and all of them will be consumed by some kind of front-end of mine.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Please visit this website to view the full documentation with all the application endpoints.
- Clone this repo on your local machine:
$ git clone https://github.com/joaocasarin/selfapi.git
$ cd selfapi
To install and set up the project, run:
$ yarn install
Or if you prefer using NPM:
$ npm install
$ yarn dev
$ yarn test
- Enable coverage report
$ yarn test:cov
- Run only UNIT tests WITH coverage report
$ yarn test:unit
- Run only INTEGRATION tests WITH coverage report
$ yarn test:int
$ yarn build
This command will create a production version of the project
inside your local dist/
folder
$ yarn start
This will use node
for serving your already
generated production version of the project.
Note this requires Building a distribution version first.
- Fork it!
- Create your feature branch:
git checkout -b feat/my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit 'Add some feature'
- Push to the branch:
git push origin feat/my-new-feature
- Submit a pull request 😎
MIT License © Joao Casarin