A simple customer tracker app built as part test for the role of a fullstack Developer @YIP Online Ltd
- Express
- MongoDB
- NodeJs
The project builds RESTful APIs using Node.js, Express and Mongoose, ...
Clone the repo:
git clone https://github.com/PromzzyKoncepts/Sonar-Server.git
cd Sonar-Server
Install the dependencies:
npm install
Generate JWT RS256 key:
ssh-keygen -t rsa -P "" -b 2048 -m PEM -f storage/jwtRS256.key
ssh-keygen -e -m PEM -f storage/jwtRS256.key > storage/jwtRS256.key.pub
# encode base64
cat storage/jwtRS256.key | base64 # edit JWT_ACCESS_TOKEN_SECRET_PRIVATE in .env
cat storage/jwtRS256.key.pub | base64 # edit JWT_ACCESS_TOKEN_SECRET_PUBLIC in .env
Running in development:
npm run dev
auth\
|--api\ # Environment variables and configuration
|--middlewares\ # Custom express middlewares
|--routes\ # Routes
|--db\ # Databse and connection
|--models\ # Mongoose models
|--user.js # model for user schema
|--userDetails.js # model for User's personal Info schema
|--connection.js # Express, mongoose and Database connection
|--app.js # Express and MongoDb integration
|--server.js # App entry point
|--helper.js # setup to assist devs to create their secret key
List of available routes:
Auth routes:
POST /user/register
- Signup
POST /user/login
- Signin
POST /user/login
- upload user info
GET /user/info
- fetch user info\
👤 Promise Okechukwu
- GitHub: @PromzzyKoncepts
- Twitter: @pr0mzzy
- LinkedIn: promiseokechukwu
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Google Map APIs
- Me for the UI design
This project is MIT licensed.
NOTE: we recommend using the MIT license - you can set it up quickly by using templates available on GitHub. You can also use any other license if you wish.