Skip to content

Kaumil-Codecrew-1611/vunca-frontend

Repository files navigation

Vunca Frontend

Setup ENV variables

Setup the following environment variables in next.config.js

module.exports = {
    env: {
        imgbb_key: '', // Put Your imgbb key
        backend_url:  'https://vunca-backend.vercel.app/', // Replace Your backend url
    },
    images: {
        domains: ['i.ibb.co'],
    }
}

Running locally in development mode

To get started, run npm install && npm run dev:

npm install
npm run dev

Note: If you are running on Windows run install --noptional flag (i.e. npm install --no-optional) which will skip installing fsevents.

Building and deploying in production

If you wanted to run this site in production, you should install modules then build the site with npm run build and run it with npm start:

npm install
npm run build
npm start

You should run npm run build again any time you make changes to the site.

Note: If you are already running a webserver on port 80 (e.g. Macs usually have the Apache webserver running on port 80) you can still start the example in production mode by passing a different port as an Environment Variable when starting (e.g. PORT=3000 npm start).

Or you can start by running node start.js in the root directory of the project.

node start.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published