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.
-
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.
- Clone this repository
git clone https://github.com/thalesgomest/boardcamp-back.git
-
Clone the front-end repository at https://github.com/thalesgomest/boardcamp-front and follow the instructions to run
-
Create a Database into Postgres
-
Set the environment variables by following these steps:
- 4.1 Create a `.env` file in the folder root
- 4.2 Copy the content of the `.env.example` into it
- 4.3 Set the data
- In your terminal, go back to the root folder and install the dependencies
npm i
- Also in the root folder, run the back-end with
npm start
-
Your server should be running now.
-
In your terminal, go to the root folder and run the tests with:
npm run test