Welcome to the home of the ENEI website.
Here you can find the source code of the website, which is built using the AdonisJS framework.
To get started with the website, follow these steps:
Caution
You will need to have Node.js 22.x or later installed on your machine.
Furthermore, you will also need to have pnpm installed.
If you don't have pnpm
installed, you can run corepack enable
to install it.
-
Clone the repository:
git clone https://github.com/niaefeup/enei.git
-
Navigate to the project directory:
cd enei/website
-
Install the dependencies:
pnpm install --frozen-lockfile
-
Run the database migrations to create the database:
node ace migration:run
-
Start the development server:
pnpm run dev
This will start the development server on
http://localhost:3333
. The development server has hot-reloading enabled, so you can make changes to the code and see them reflected in the browser immediately.
To use Tuyau in your routes, you need to update the API file each time you do certain actions, mainly:
- Adding a new route/controller to your project
- Adding a
request.validateUsing
call in your controller method
This is done with the command:
node ace tuyau:generate
More info here: Tuyau - Installation