Skip to content

rakifsul/rf_paste_share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English

rf_paste_share - Node.js Paste Sharing App

What is This Software?

rf_paste_share is a Node.js paste sharing web app.

How It Works

This application works like a typical CRUD, but there are some additional features such as auto delete.

How to Try This Code

How to Try server-mongoose

To try the server-mongoose code, navigate to the server-mongoose folder via the command line.

Next, create a .env file inside the folder.

Then, configure the database settings and other configurations in the .env file based on .env-example.

The server-mongoose code requires MongoDB, so make sure you have installed it and created the database as per the previous configuration.

Next, run:

npm install

Then, run:

npm run dev

Finally, open your browser to the address listed in the BASE_URL in the .env file.

How to Try server-knex

To try the server-knex code, create a .env file inside the folder.

Then, fill in the .env file based on .env-example. Here you can change the port, environment, and database details.

The server-knex code requires MySQL, so make sure you have installed it and created the database according to the configuration.

Now, make sure you are inside the server-knex folder.

Next, run:

npm install

Then, run:

npm run db:refresh

Then, run:

npm run dev

Finally, open your browser to the address listed in the BASE_URL in the .env file.

Default admin login:

username: admin@example.com
password: admin

Freelance Worker Link

Bahasa Indonesia

rf_paste_share - Aplikasi Node.js Paste Sharing

Software Apakah Ini?

rf_paste_share adalah Node.js paste sharing web app.

Cara Kerja

Aplikasi ini bekerja seperti CRUD pada umumnya, hanya saja ada beberapa fitur tambahan seperti auto delete.

Cara Mencoba Kode Ini

Cara Mencoba server-mongoose

Untuk mencoba kode server-mongoose, masuk ke dalam folder server-mongoose via command line.

Selanjutnya, buat file .env di dalam foldernya.

Selanjutnya, konfigurasi database setting dan lainnya di file .env sesuai dengan .env-example.

Kode server-mongoose membutuhkan MongoDB, jadi pastikan Anda telah menginstallnya dan membuat databasenya sesuai konfigurasi tadi.

Selanjutnya, jalankan:

npm install

Selanjutnya, jalankan:

npm run dev

Terakhir, buka browser Anda ke alamat yang tertera di BASE_URL yang ada di .env.

Cara Mencoba server-knex

Untuk mencoba kode server-knex, buat file .env di dalam foldernya.

Selanjutnya, isi .env sesuai .env-example. Di sini Anda bisa mengubah port, environment, dan detail database.

Kode server-knex membutuhkan MySQL, jadi pastikan Anda telah menginstallnya dan membuat databasenya sesuai konfigurasi tadi.

Sekarang, pastikan Anda berada dalam folder server-knex.

Selanjutnya, jalankan:

npm install

Selanjutnya, jalankan:

npm run db:refresh

Selanjutnya, jalankan:

npm run dev

Terakhir, buka browser Anda ke alamat yang tertera di BASE_URL yang ada di .env.

Default admin login:

username: admin@example.com
password: admin

Freelance Worker Link

About

Paste Sharing App, Written in Node JS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published