https://github.com/michaelpiper/istrategy
https://github.com/michaelpiper/istrategy
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/michaelpiper/istrategy
- Owner: michaelpiper
- Created: 2023-10-19T05:27:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T05:36:15.000Z (almost 3 years ago)
- Last Synced: 2024-04-16T14:11:50.897Z (over 2 years ago)
- Language: TypeScript
- Size: 896 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### requirement:
1. Node 18 // node -v
2. Yarn //yarn -v
3. Redis // redis-cli
4. Mysql server //mysql -u root -p
once you meet the requirement we are good to go
### Installation Steps:
1. **Install Dependencies:**
```
yarn install
```
2. **Build the Application:**
```
yarn build
```
3. **Create `.env` File:**
- Create a file named `.env` in the root folder.
- Add the following content as an example:
```env
NODE_ENV=development
DATABASE_URL="mysql://root:password@localhost:3306/1ubank?schema=public"
REDIS_URI="redis://127.0.0.1:6379"
# SERVER CONFIG
PORT=8080
HOSTNAME=0.0.0.0
PLATFORM_AUDIENCE=1
PLATFORM_PUBLIC_KEY=123123
APP_KEYS='secret key,secret key you used'
ADMIN_USER_ROOT_EMAIL=test@example.com
ADMIN_AUTH_PASS=test@example.com
ADMIN_AUTH_USER=test@example.com
```
4. **Run Database Migrations:**
```
yarn migrate
```
5. **Seed the Database:**
```
yarn seed
```
6. **Run Test:**
```
yarn test
```
7. **Start the Application in Development Mode:**
```
yarn dev
```
These steps cover setting up the necessary dependencies, configuring environment variables, and preparing the database for your application, it starts the application in development mode.
Make sure to replace placeholders like `password`, `test@example.com`, etc., with actual values relevant to your application.
NOTE:
You can login to the dashboard with your username and password, test@example.com and test@example.com respectively
{{BASE_URL}}/admin

```sql
select article_id as article_no ,currency_name as article,provider_name as provider, article.provider_id as provider_no, price from article left join currency on article.currency_id = currency.currency_id left join provider on article.provider_id = provider.provider_id;
```
```
+------------+-------------+--------------+-------------+-------+
| article_no | article | provider_no | provider | price |
+------------+-------------+--------------+-------------+-------+
| 1 | EU "Pounds" | 3 | Flutterwave | 1000 |
+------------+-------------+--------------+-------------+-------+
```

[Find Answer Here](ANSWER.md)