Skip to content

goweki/loci

Repository files navigation

LOCi security portal - webapp

LOCi security portal webapp.

Preview link to webapp

Public Pages

User Pages

Backend routes

  • Authentication: [/api/auth] - authentication
  • Mailing: [/api/mailer] - emailing function using nodemailer
  • etc

Toolchain

Running App

  1. Clone this repo in your local directory:

    git clone https://github.com/goweki/loci.git
  2. Populate the environment variables as detailed in the .env.template file.

  3. Navigate into the local repo and install dependencies:

    npm i
  4. To seed data, run the scripts/seed.mjs script:

    npm run seed
  5. To run the development server, within the cloned repo:

    npm run dev

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

To build the production-ready optimized build.

npm run build
  • The output of the build process is stored in the /.next directory by default.

To start the server in production mode:

npm run start
  • serves the previously built and optimized version of your application.
  • Next js runs the server on port 3000 by default