41
loading...
This website collects cookies to deliver better user experience
Express
, SQLite
and Typescript
. The product can be used to bootstrap fast a backend server or just for educational purpose. To make this article more useful, I will mention an open-source React Dashboard already configured to work with this Node/Express server. Thanks for reading! - Content provided by App Generator.
✨ Step #1 - Clone the sources
$ git clone https://github.com/app-generator/api-server-nodejs.git
$ cd api-server-nodejs
✨ Step #2 - Install dependencies
$ npm i
// OR
$ yarn
✨ Step #2 - Start the API server (development mode)
$ npm dev
// OR
$ yarn dev
5000
but we can customize the value in the .env
file saved in the root of the project. The API:
http://localhost:5000/api/users/register
{
"username":"test",
"password":"pass",
"email":"[email protected]"
}
{
"userID": "60e7db4331173d284832a0ab",
"msg": "The user is created"
}
http://localhost:5000/api/users/login
{
"password":"pass",
"email":"[email protected]"
}
✨ Step #1 - Clone the project
$ git clone https://github.com/app-generator/react-berry-admin-template.git
$ cd react-berry-admin-template
✨ Step #2 - Install dependencies via NPM or yarn
$ npm i
// OR
$ yarn
✨ Step #3 - Start in development mode
$ npm run start
// OR
$ yarn start
✨ React Node JS Berry - UI Icons
Thanks for reading! Feel free to AMA in the comments.