An example on how to create and organize your API build with the ExpressJS framework and TypeScript.
- NodeJS
- MongoDB (Optional, if you want to run the database locally)
- Yarn (Optional, if you want to use Yarn instead of NPM)
- Postman (Optional, if you want to test the API)
- MySQL (Optional, if you want to run the database locally)
The first step is cloning the repository on your local machine. The will create a new folder which includes the source from the repository.
git clone https://github.com/HalloSouf/api-example
Navigate through your CLI to the directory which is created by the previous command.
cd api-example
Install the required dependencies listed in the package.json
file.
npm install
# Or
yarn install
Start the application by running the dev command.
npm run dev
# Or
yarn dev
To build the application, run the build command.
npm run build
# Or
yarn build
When the build is completed, you can run the application by running the following command.
node build/main.js
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details