This is how you may setting up your project locally. To get a local copy up and running follow these simple example steps.
Here is the requirement to run this project, please install the right software properly.
| Software | Version | Note |
|---|---|---|
| Node | >14 | needed for the newer ES version |
| Postgresql | 12 |
Below is how to installing and setting up the service.
- Get a free API Key at (http://soffice.elevenia.co.id/login.do).
- Clone the repo
git clone https://github.com/ardhyanth/miniCommerce.git
- Install NPM packages
npm install
- Enter your API in
.envconst ELEVENIA_KEY = 'ENTER YOUR API';
- For the DDL, you can see
DDL.sqlin project root. This is necessary to be executed due to the usage of trigger function that helps recalculating some field used in this project.
Currently for development purpose only.
npm run devafter a bit of time, you will see this log on the terminal
Server running on http://localhost:3000and the server is ready for next development/trial
npm run testFor the API documentation, we are using swagger with the integration of Joi and Hapi.js.
You can access more detailed documentation of the API on /docs, after the service is running.
- Add Swagger
- Add core functionality
- Add endpoint proxy to Elevenia
- Add unit test
- Restructure code hierarchy
- add more unit test and complete coverate
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License.