# Installation

Using Axe API in an application is very easy. We've created a CLI tool for you; axe-magic (opens new window).

# Create Project

You can create a new Axe API project by using axe-magic (opens new window). But first, you can install it in your development environment. When you installed it, you can be able to access axe-magic command via CLI. You can use the following command to install axe-magic to your machine;

$ npm i -g axe-magic
$ axe-magic --version

After that, creating a new project is very easy. Just you can execute the following command;

$ axe-magic new my-api

This command will pull axe-api-template (opens new window) project to your current directory with a new name, my-api.

# Install Dependencies

To install your project's depencies, you can execute the following commands in the root directory;

$ cd my-api
$ npm install

# Serve Application

To serve this application, you can execute the following command;

$ npm run start:dev

start:dev command use nodemon (opens new window). If you haven't installed it yet, we suggest you install it first.

After that, your first Axe API application will be running in localhost:3000.

You will see the following API response if you visit localhost:3000 (opens new window).

  "name": "AXE API",
  "description": "The best API creation tool in the world.",
  "aim": "To kill them all!"

If you can see that response, it means that your project is running properly.

If you review .env file, you can see that the project uses SQLite (opens new window) as the database.