Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Repository files navigation

Luzhanqi Web

Production site: https://luzhanqi.netlify.app Staging site: https://luzhanqi-staging.netlify.app

Ensure that you have ESLint and Prettier installed and enabled in VSCode.
If you want to run the client using a local database, install and run MongoDB in the background.

Run npm install to install node dependencies. Do not use yarn. In your project directory, initialize a file .env with contents PORT=3000. Run

cat > .env << EOF
PORT=3000
VITE_API=http://localhost:4000
EOF

You will also need to name a variable MONGODB_URI and set it to the MongoDB connection string. Please ask a member of the team for a set of credentials. If you want to test the frontend using a local MongoDB server instead, just run MongoDB on your machine (default port 27017).
Please note that opening more than one client on localhost may result in a socket connection refusal, due to CORS rules on the backend. The two whitelisted ports are 3000 and 3001.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Deployment

Merging a PR into main deploys to the staging site above, then a GitHub Actions workflow smoke-tests it and — if it passes — promotes it to production automatically. See CONTRIBUTORS.md for the full flow (including a diagram) and the contribution workflow.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages