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-exampleNavigate through your CLI to the directory which is created by the previous command.
cd api-exampleInstall the required dependencies listed in the package.json file.
npm install
# Or
yarn installStart the application by running the dev command.
npm run dev
# Or
yarn devTo build the application, run the build command.
npm run build
# Or
yarn buildWhen the build is completed, you can run the application by running the following command.
node build/main.jsThis project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details