Skip to content

Pixoll/food-comp-db-backend

Repository files navigation

CapChiCAl - Backend

Preparation

  • Make sure to have at least Node v20.
  • Load db.sql into MySQL by running mysql -u username -p < db.sql.
  • Run cp .env.example .env and fill out the database credentials.
    • Additionally, add the PORT variable to override the default port (3000) where the API will be attached.
  • Install all dependencies with npm i.

Execution

npm start

Compiles and runs the API without live-reload.

npm run start:dev

Runs the API with live-reload when any file changes.

Documentation

The API documentation will be found in http://localhost:PORT/api.

About

Chile Food Composition Database - Backend

Resources

Stars

Watchers

Forks