Giter Site home page Giter Site logo

thalesgomest / boardcamp-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lusntgo/boardcamp-api

0.0 0.0 0.0 46 KB

Boardcamp is a management system of a board game rental company, where it is possible to register games, separate them by category, enter customers and manage rents.

Shell 9.02% JavaScript 90.98%

boardcamp-api's Introduction

Boardcamp ๐ŸŽฒ ย 

๐ŸŽฒ About

Boardcamp is a management system of a board game store!

This is an web application where it is possible to register games, separate them by category, enter customers and manage rents.

GitHub Org's stars

๐Ÿ”จ Features

โ˜‘๏ธ Categories - GET all games categories and insert a new game catogory.

โ˜‘๏ธ Games - GET all games registered in the store, insert a new game.

โ˜‘๏ธ Customers - GET all clients, GET a client by it's ID, insert a new client and update a client data.

โ˜‘๏ธ Rentals - GET all game rentals, insert a rental, conclude a rental and delete a non concluded rental.

๐Ÿ‘ฉโ€๐Ÿ’ป Technologies

๐ŸŽ‰ How to run

  1. Clone this repository
git clone https://github.com/LuSntgo/Boardcamp-API
  1. Clone the front-end repository at https://github.com/LuSntgo/Boardcamp and follow the instructions to run
  2. Create a Database using the dump.sql file inside the database folder by following these steps:
    • 4.1 Open your terminal. Important: the terminal must be opened in the same path as the dump.sql file is located.
    • 4.2 Access PostgreSQL using the command sudo su postgres and enter your password when prompted.
    • 4.3 Next, type psql postgres and hit enter.
    • 4.4 Create a database by typing CREATE DATABASE boardcamp; and hitting enter.
    • 4.5 Type \c boardcamp and hit enter.
    • 4.6 Finally, type psql boardcamp < dump.sql and hit enter. Your database should be ready after this step.
  3. Set the environment variables by following these steps:
    • 5.1 Create a .env file in the folder root
    • 5.2 Copy the content of the .env.example into it
    • 5.3 Set the data
  4. In your terminal, go back to the root folder and install the dependencies
npm i
  1. Also in the root folder, run the back-end with
npm start
  1. Your server should be running now.

  2. In your terminal, go to the root folder and run the tests with:

npm run test

โœจ Author


Luiza Santiago

boardcamp-api's People

Contributors

lusntgo 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.