osscameroon / onacut

Onacut is web application that notifies users of electricity, water or internet outage in their location
14 stars 11 forks source link

onacut237

Project setup backend

REQUIREMENTS

HOW TO SET UP

# Put appropriate parameters inside .env.example
make install-deps

HOW TO LAUNCH

DEV
make run

# To run tests
make test

# formating
make lint
PROD

Or Using Docker

# This will install and run your project on port 8000
make docker-run

To run the backend [fastapi]

Project setup frontend

REQUIREMENTS

HOW TO SET UP

# Put appropriate parameters inside .env.example
make install-deps

# or with npm
npm install

HOW TO LAUNCH

DEV
make run

# or with npm
npm start

# To run tests
make test
PROD

Or Using Docker

make serve

# or with npm
npm run serve

# This will install and run your project on port 3000
make docker-run

To launch the frontend, we need Node installed and npm

Compiles and hot-reloads for development

npm run start 

Compiles and minifies for production

npm run build

NB: To launch the frontend, you should launch the backend first.

Screenshots

Illustrative video of the project

https://user-images.githubusercontent.com/34966088/184613415-25c245b6-74f5-4197-8b62-f737fa000d86.mp4