Skip to content

This project has all user authentication management needed, with node.js and mongodb.

Notifications You must be signed in to change notification settings

Hydra-LCM/EasyAccount

Repository files navigation

EasyAccount

EasyAccount serves as the foundation for all future projects within Hydra ecosystem. It provides a standardized authentication solution, reducing development time and effort required for implementing authentication features in new projects.

How to start development:

How to use the API:

How to start development:

Warning: Before start development, please read the development patterns on trello!

Windows

Linux

Windows:

How start development on Windows:

Requirements:

Clone the project.

Install required packages into the project. In the project folder, use the following command in the terminal:

npm start

Copy the .env.example to .env:

cp .env.example .env

If you are using local mongodb, run this command in another terminal:

mongod
Click here if you're having problems with the command "mongod" (on Windows)
Reinstall MongoDB as usual and wait until Compass appears. If it doesn't, uninstall and reinstall. 
Copy the installation path; we'll need it.
Open a command prompt (cmd.exe) as an administrator.
Type: cd C:\
Then: md "\data\db"
After that: "C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe" --dbpath="c:\data\db"
Press "CTRL+C" and close cmd.exe.
Copy the installation path up to the "bin" folder, for example: C:\Program Files\MongoDB\Server\YOUR_MONGODB_VERSION\bin
Go to system properties and add to the system environment variables (search on Google) in "PATH":
Double-click on PATH in "System Environment Variables".
Click on "New"
Paste the copied path and click OK.

If you are using docker, run this command:

docker-composer up -d

Run the project:

npm start

Linux:

How start development on Linux:

Requirements:

Clone the project.

Install required packages into the project. In the project folder, use the following command in the terminal:

npm install

Copy the .env.example to .env:

cp .env.example .env

If you are using local mongodb, run this command in another terminal:

mongod

If you are using docker, run this command:

docker-composer up -d

Run the project (in the project folder, use the following command):

npm start

How to use the API (routes):

Change NODE_ENV='prod' variable in .env to NODE_ENV='dev'

Acess: http://localhost:3000/api-docs/

Authors:

About

This project has all user authentication management needed, with node.js and mongodb.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published