You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Challenge API](https://github.com/topcoder-platform/challenge-api) - The API endpoint for challenges
17
+
-[Resources API](https://github.com/topcoder-platform/resources-api) - The API endpoint for resources
18
+
-[Challenge ES Processor](https://github.com/topcoder-platform/challenge-processor-es) - Updates challenge data in ElasticSearch
19
+
-[Resource ES Processor](https://github.com/topcoder-platform/resource-processor-es) - Updates resource data in Elasticsearch
21
20
22
21
## Prerequisites
23
22
-[NodeJS](https://nodejs.org/en/) (v10.15+)
@@ -26,46 +25,36 @@ This is the frontend application for creating and managing challenges.
26
25
27
26
## Configuration
28
27
29
-
You can see the configuration paramaters below.
30
28
Production configuration is in `config/constants/production.js`
31
29
Development configuration is in `config/constants/development.js`
32
30
33
-
-`ACCOUNTS_APP_CONNECTOR_URL`: The url of Accounts app connector
34
-
-`ACCOUNTS_APP_LOGIN_URL`: The url of Accounts app login page
35
-
-`COMMUNITY_APP_URL`: The base url of community app
36
-
-`MEMBER_API_URL`: The members api endpoint
37
-
-`MEMBER_API_V3_URL`: v3 members api endpoint
38
-
-`DEV_APP_URL`: (Development) The URL to start the app from (eg http://local.topcoder-dev.com)
39
-
-`CHALLENGE_API_URL`: The challenge API URL
40
-
-`PROJECT_API_URL`: The project API URL
41
-
-`API_V3_URL`: The API v3 URL
31
+
## Local Deployment Instructions
42
32
43
-
## Local Deployment
33
+
1. First install dependancies
44
34
45
-
### Foreman Setup
35
+
```bash
36
+
npm install
37
+
```
46
38
47
-
To install foreman follow this [link](https://theforeman.org/manuals/1.24/#3.InstallingForeman)
39
+
1. copy the environment file in docs/dev.env to /.env
48
40
49
-
To know how to use foreman follow this [link](https://theforeman.org/manuals/1.24/#2.Quickstart)
41
+
1. add `127.0.0.1 local.topcoder-dev.com`to your /etc/hosts file
50
42
51
-
### Development
43
+
1. If you are using local instances of the API's, change the DEV_API_HOSTNAME in configs/constants/development.js to match your local api endpoint.
44
+
- For example change it to 'http://localhost:3000/',
52
45
53
-
To run the app in development mode run
46
+
1. Run the app in development mode
54
47
55
48
```bash
56
49
npm run dev
57
50
```
58
51
59
-
You can access the app from [http://localhost:3000](http://localhost:3000)
52
+
You can access the app from [http://local.topcoder-dev.com:3001/](http://local.topcoder-dev.com:3001/)
60
53
61
54
The page will reload if you make edits.
62
55
63
56
You will also see any lint errors in the console.
64
57
65
-
`NOTE`: Redirection from login page doesn't work with localhost urls because account app doesn't allow it, in order to test it you can add `127.0.0.1 local.topcoder-dev.com` to your /etc/hosts file and access the app from
0 commit comments