Coder Social home page Coder Social logo

lucastore-api's Introduction

LucaStore API

Description

This is an API project built with NestJS and Prisma. The API manages users, products, catalogs, shopping carts, and orders.

Installation

Prerequisites

Before you begin, you need to have Node.js and pnpm installed. If you don't have Node.js and pnpm installed, follow the instructions below to install them:

  1. Install Node.js:

    Download and install Node.js from the official website.

  2. Install pnpm:

    pnpm installation instructions

Cloning the Repository

  1. Clone the repository:

    git clone https://github.com/VS-Lucas/LucaStore-API.git
    cd lucastore-api
  2. Install dependencies:

    pnpm install

Environment Variables

Before running the project, you need to set up the environment variables. Create a .env file in the root of the project and add the following:

DATABASE_URL="file:./dev.db"
JWT_SECRET="<your_jwt_secret>"

Populating the Database

  1. To reset the database and populate it with seed data, run:

    npx prisma migrate reset

Running the Project

To run the project, you can use the following command in the terminal, while in the project's root directory:

pnpm run start

Hint: To speed up the development process (20 times faster), you can use the SWC builder by passing the -b swc flag to the start script, as follows:

pnpm run start -- -b swc

To watch for changes in your files, you can run the following command to start the application:

pnpm run start:dev

Documentation

To access the project documentation, visit:

http://localhost:3000/api

Contribution

If you wish to contribute to this project, please open a Pull Request or an Issue.

Contact

For questions and suggestions, please contact us via email: [email protected]

lucastore-api's People

Contributors

vs-lucas 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.