Skip to content

conan-io/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web

Conan website, including home and ConanCenter

Requirements

  • Next.js Documentation - Learn about Next.js features and API.
  • Learn Next.js - an interactive Next.js tutorial.
  • React Select - A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete, async and creatable support.
  • React Icons - Include popular icons in your React projects easily with react-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.

Test server

server folder: FastAPI server. [WIP]

Run server:

cd test-server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn app:app --reload --port 4000

Webapp

conanio folder: NexJS web app source.

Run the development webserver with yarn:

cd conanio
yarn install
yarn test:ci
yarn dev

Open http://localhost:3000 with your browser to see the result.

API routes: the pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

NGINX Proxy pass configuration

server {
    listen 80 default_server;
    server_tokens off;
    server_name conancenter-stg.jfrog.team;
    client_max_body_size 8192M;
    location / {
        expires 2m;
        add_header              Cache-Control "public";
        proxy_pass              http://conancenter-web/;
        proxy_http_version      1.1;
        proxy_pass_header       Server;
        proxy_set_header        Host $host;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forward-For $proxy_add_x_forwarded_for;
    }
}