|
1 | 1 | # Idaka |
| 2 | +Download and compile Idaka following the steps. |
2 | 3 |
|
3 | | -Download and compile Idaka with the following commands. |
| 4 | +### 1. Configure the database with MongoDB Atlas |
| 5 | +#### Create the database |
| 6 | +To create a MongoDB use the following link to go to the home page https://account.mongodb.com/account/login where you can find the database section. Here you need to click on the create button. |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +For more details please refer to [MongoDB_Documentation](https://www.mongodb.com/basics/create-database) |
| 12 | +#### Create the collections on the created database |
| 13 | +Once you create the database, you need to create the collections that the app uses. For this you need to navigate to the Collections tab and click on the plus sign + icon for a database |
| 14 | + |
| 15 | +Then you need to enter the Collection Name, in this case we need 4 collections: Practices, Queries, Stages, TasksWithPractices. |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +For more details please refer to [MongoDB_Documentation](https://www.mongodb.com/docs/atlas/atlas-ui/collections/) |
| 20 | +#### Upload data |
| 21 | +The following data needs to be uploaded on their corresponding collections: |
| 22 | +* [Practices](Practices.json) |
| 23 | +* [Stages]() |
| 24 | +* [TasksWithPractices]() |
| 25 | + |
| 26 | +In order to do this you should go to your collection and click on Insert Document. Select the JSON way to upoad data and copy and paste the corresponding data. |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +### 2. Configure the environment variables |
| 32 | +On the back-end folder create a .env file with the variable REACT_APP_DB_CONNECTION_STRING. Note that you should add the connection string for your database. |
| 33 | +For more details please refer to [MongoDB_Documentation](https://www.mongodb.com/basics/mongodb-connection-string#:~:text=In%20the%20MongoDB%20Atlas%20web,connection%20string%20for%20your%20cluster.) |
| 34 | + |
| 35 | + |
| 36 | +### 3. Download and compile Idaka with the following commands. |
4 | 37 | ``` |
5 | 38 | git clone https://github.com/TheSoftwareDesignLab/Idaka.git |
6 | 39 | ``` |
|
0 commit comments