Code Monkey home page Code Monkey logo

api-node-pilab's Introduction

App Setup and Configuration Guide

Follow these steps to set up and configure the application to run it locally ๐Ÿ““

Prerequisites

Make sure you have the following softwares installed on your system:

  • Node.js (version 14 or higher) ๐Ÿง˜
  • Yarn (version 1.22 or higher) ๐ŸŽŠ

Step 1: Clone the Repository

Start by cloning the repository ๐ŸŒ€

git clone https://github.com/azevedev/api-node-pilab

Step 2: Install Dependencies

Navigate to the root directory and install the project dependencies using Yarn:

cd api-node-pilab
yarn install

This will download โฌ‡ and install all the required dependencies specified in the package.json file.

Step 3: Build the Application

To build the TypeScript code into JavaScript, run the following command ๐Ÿ‘‡

yarn build

This will compile the TypeScript code and generate the JavaScript output in the designated directory (e.g., dist ๐Ÿ‘)

Step 4: Migrations and Seeds ๐ŸŒฑ

You'll need a database to use the application. I've added a seed file (โ˜๐Ÿค“) that will populate your database to simplify the process.

In order to use the migrations, just type โŒจ

yarn knex:migrate

This command will create the database and run the migrations. After that is done, just type:

yarn knex:seed

Step 5: Start the Application

Once the build process is complete and you created the database, you can start the application locally using the following command:

yarn start

This will run the compiled TypeScript code inside dist on your local machine using Node.

To use the TypeScript files on your server, meaning run it as a dev ๐Ÿ’ป, use:

yarn dev

And that's it! ๐Ÿ‘๐Ÿš€ You can test the application on http://localhost:3333/api/v1. Make sure it's the correct port (it'll be displayed on your console).

Feel free to explore and customize the code according to your requirements. Cheers! ๐Ÿ‘‹

api-node-pilab's People

Contributors

azevedev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.