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.
The following tools and frameworks were used in the construction of the project:
- Clone this repository
git clone https://github.com/thipereira02/Boardcamp
- Clone the front-end repository at https://github.com/thipereira02/boardcamp-front and follow the instructions to run
- Create a Database using the
dump.sqlfile inside thedatabasefolder by following these steps:- 4.1 Open your terminal. Important: the terminal must be opened in the same path as the
dump.sqlfile is located. - 4.2 Access PostgreSQL using the command
sudo su postgresand enter your password when prompted. - 4.3 Next, type
psql postgresand hit enter. - 4.4 Create a database by typing
CREATE DATABASE boardcamp;and hitting enter. - 4.5 Type
\c boardcampand hit enter. - 4.6 Finally, type
psql boardcamp < dump.sqland hit enter. Your database should be ready after this step.
- 4.1 Open your terminal. Important: the terminal must be opened in the same path as the
- Set the environment variables by following these steps:
- 5.1 Create a
.envfile in the folder root - 5.2 Copy the content of the
.env.exampleinto it - 5.3 Set the data
- 5.1 Create a
- 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